public static class ObjectArrayPool.SizePool
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List |
arrays |
private int |
arraySize |
private int |
created |
private int |
recovered |
private int |
recycled |
private int |
size |
Constructor and Description |
---|
SizePool(int arraySize) |
SizePool(int arraySize,
int initialSize) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
create() |
int |
getArraySize() |
int |
getCreatedCount()
Returns the number of items this pool has created since
it's construction.
|
int |
getRecoveredCount()
Returns the number of items this pool has recovered from
the pool since its construction.
|
int |
getRecycledCount()
Returns the number of items this pool has recycled since
it's construction.
|
int |
getSize()
Returns the number of items in the pool
|
void |
recycle(java.lang.Object[] value) |
private java.util.List arrays
private int arraySize
private int size
private int created
private int recovered
private int recycled
public SizePool(int arraySize)
public SizePool(int arraySize, int initialSize)
public int getArraySize()
public java.lang.Object[] create()
public void recycle(java.lang.Object[] value)
public int getSize()
public int getCreatedCount()
public int getRecoveredCount()
public int getRecycledCount()