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.


Field Summary
protected  ArrayList stack
           
 
Constructor Summary
QPool()
           
 
Method Summary
 Object allocate()
          Allocate a previously used object.
 void recycle(Object obj)
          The object is now available for reuse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stack

protected ArrayList stack
Constructor Detail

QPool

public QPool()
Method Detail

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.