josx.util
Class RecyclableArray

java.lang.Object
  extended byjosx.util.AbstractRecyclable
      extended byjosx.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
 Object get(int index)
           
 int getLength()
           
 void init()
          Initializes the Recyclable.
 void put(int index, Object o)
           
 void release()
          Called by users when this Recyclable is no longer needed.
 
Methods inherited from class josx.util.AbstractRecyclable
getNextRecyclable, setNextRecyclable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Method Detail

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 Object get(int index)

put

public final void put(int index,
                      Object o)