T - the type of the element itself (used for factory-based cration)public interface Poolable<T>
ObjectPool.| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears this instance before returning it to the pool.
|
T |
create()
Creates a further instance of this instances (intended as factory method
to be executed on a prototypical instance).
|
void clear()
T create()