lejos.util
Interface Recyclable

All Known Implementing Classes:
AbstractRecyclable, RecyclableArray

public interface Recyclable

Represents a recyclable object.

See Also:
Recycler

Method Summary
 Recyclable getNextRecyclable()
          Must return Recyclable most recently set with setNextRecyclable.
 void init()
          Called when the Recyclable is allocated by a Recycler.
 void release()
          Called when this Recyclable is no longer needed.
 void setNextRecyclable(Recyclable r)
          Stores a Recyclable object.
 

Method Detail

init

void init()
Called when the Recyclable is allocated by a Recycler.


release

void release()
Called when this Recyclable is no longer needed. Resources should be disposed in this method, e.g. this is where any nested Recyclables would be released.


getNextRecyclable

Recyclable getNextRecyclable()
Must return Recyclable most recently set with setNextRecyclable.

See Also:
setNextRecyclable(lejos.util.Recyclable)

setNextRecyclable

void setNextRecyclable(Recyclable r)
Stores a Recyclable object.

See Also:
getNextRecyclable()