lejos.util
Class RecyclableArray
java.lang.Object
  
lejos.util.AbstractRecyclable
      
lejos.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. | 
 
 
 
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)