rcx.josx.util
Class RecyclableArray
java.lang.Object
rcx.josx.util.AbstractRecyclable
rcx.josx.util.RecyclableArray
- All Implemented Interfaces:
- Recyclable
public class RecyclableArray
- extends AbstractRecyclable
A recyclable array. It should be
allocated using an instance of ArrayRecycler
.
- See Also:
ArrayRecycler
Method Summary |
java.lang.Object |
get(int index)
|
int |
getLength()
|
void |
init()
Initializes the Recyclable. |
void |
put(int index,
java.lang.Object o)
|
void |
release()
Called by users when this Recyclable is no longer needed. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
init
public final void init()
- Description copied from class:
AbstractRecyclable
- Initializes the Recyclable.
- Specified by:
init
in interface Recyclable
- Specified by:
init
in class AbstractRecyclable
release
public final void release()
- Description copied from class:
AbstractRecyclable
- Called by users when this Recyclable is no longer needed.
- Specified by:
release
in interface Recyclable
- Specified by:
release
in class AbstractRecyclable
getLength
public final int getLength()
get
public final java.lang.Object get(int index)
put
public final void put(int index,
java.lang.Object o)