josx.util
Interface Recyclable

All Known Implementing Classes:
AbstractRecyclable

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

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


release

public 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

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

See Also:
setNextRecyclable(josx.util.Recyclable)

setNextRecyclable

public void setNextRecyclable(Recyclable r)
Stores a Recyclable object.

See Also:
getNextRecyclable()