Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Methods inherited from class lejos.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)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD