|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrcx.josx.util.Recycler
rcx.josx.util.ArrayRecycler
public final class 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. |
| Methods inherited from class rcx.josx.util.Recycler |
|---|
allocate, recycle |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayRecycler()
capacity - Maximum number of allocated (non garbage) objects at any given time.| Method Detail |
|---|
public final RecyclableArray allocate(int length)
java.lang.StackOverflowError - May be thrown due to the recursive implementation of the method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||