Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD