public abstract class ObjectPool<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<T> |
free |
protected java.util.List<T> |
used |
| Constructor and Description |
|---|
ObjectPool() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
borrowObject() |
protected abstract T |
create() |
protected <L> java.util.List<L> |
createList() |
int |
freeSize() |
abstract void |
returnObject(T object) |
int |
size() |
int |
usedSize() |