public abstract class ObjectPool<T>
extends Object
-
Constructor Summary
Constructors
-
Method Summary
final void
protected abstract void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ObjectPool
public ObjectPool()
-
ObjectPool
public ObjectPool(int capacity)
-
Method Details
-
-
giveBack
public final void giveBack(T object)
-
newObject
protected abstract T newObject()
-
reset
protected abstract void reset(T object)