| Modifier and Type | Class and Description |
|---|---|
| public static interface | ObjectPool.Handle<T>
Handle for an pooled |
| public static interface | ObjectPool.ObjectCreator<
the type of the pooled object T>Creates a new Object which references the given |
| private static class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public abstract T | |
| public static <T> ObjectPool | newPool(final ObjectPool.
Creates a new |
| ObjectPool | back to summary |
|---|---|
| pack-priv ObjectPool() | |
| get | back to summary |
|---|---|
| public abstract T get() Get a | |
| newPool | back to summary |
|---|---|
| public static <T> ObjectPool Creates a new | |
Object that will be used to notify the ObjectPool once it can
reuse the pooled Object again.
| Modifier and Type | Method and Description |
|---|---|
| public void |
| recycle | back to summary |
|---|---|
| public void recycle(T self) Recycle the | |
Handle and calls Handle#recycle(Object) once
it can be re-used.
| Modifier and Type | Method and Description |
|---|---|
| public T | newObject(ObjectPool.
can NOT be null. handleCreates an returns a new |
| newObject | back to summary |
|---|---|
| public T newObject(ObjectPool. Creates an returns a new
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public T |
| recycler | back to summary |
|---|---|
| private final Recycler<T> recycler | |
| RecyclerObjectPool | back to summary |
|---|---|
| pack-priv RecyclerObjectPool(final ObjectPool. | |
| get | back to summary |
|---|---|
| public T get() Implements abstract io. Doc from io. Get a
| |