com.jxml.quick.recycle
Class QPool
java.lang.Object
|
+--com.jxml.quick.recycle.QPool
- public final class QPool
- extends Object
Manages a pool of reusable objects.
Constructor Summary |
QPool()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stack
protected ArrayList stack
QPool
public QPool()
recycle
public void recycle(Object obj)
- The object is now available for reuse.
allocate
public Object allocate()
- Allocate a previously used object. If none exists, create a new one.