public class Pool extends Object
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Modifier and Type | Class and Description |
---|---|
static class |
Pool.MethodHandle |
Modifier and Type | Field and Description |
---|---|
static int |
MAX_ENTRIES |
static int |
MAX_STRING_LENGTH |
Constructor and Description |
---|
Pool(int pp,
Object[] pool,
Types types)
Construct a pool with given number of elements and element array.
|
Pool(Types types)
Construct an empty pool.
|
Modifier and Type | Method and Description |
---|---|
int |
get(Object o)
Return the given object's index in the pool,
or -1 if object is not in there.
|
int |
numEntries()
Return the number of entries in the constant pool.
|
int |
put(Object value)
Place an object in the pool, unless it is already there.
|
void |
reset()
Remove everything from this pool.
|
public static final int MAX_ENTRIES
public static final int MAX_STRING_LENGTH
public Pool(int pp, Object[] pool, Types types)
public Pool(Types types)
public int numEntries()
public void reset()
public int put(Object value)
public int get(Object o)
Copyright © 2015. All rights reserved.