|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--josx.util.Recycler | +--josx.util.ArrayRecycler
An abstract array recycler.
Note that the caller is expected to provide thread safety for instances of this class.
RecyclableArray
Constructor Summary | |
ArrayRecycler()
Constructs a recycler. |
Method Summary | |
RecyclableArray |
allocate(int length)
Attempts to obtain a free RecyclableArray. |
protected Recyclable |
createInstance()
This is a factory method that should be overridden to create an Recyclable object instance. |
Methods inherited from class josx.util.Recycler |
allocate, recycle |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
Constructor Detail |
public ArrayRecycler()
Method Detail |
public final RecyclableArray allocate(int length)
StackOverflowError
- May be thrown due to the recursive implementation of the method.protected final Recyclable createInstance()
Recycler
createInstance
in class Recycler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |