|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Recyclable
This interface defines a method to recycle an object.
Method Summary | |
---|---|
Reference<? extends Recyclable> |
getReference()
Returns the reference object set by the setReference(Reference)
method. |
void |
recycle()
Recycles the object. |
void |
setReference(Reference<? extends Recyclable> reference)
Sets a Reference object that can be used by object pool
implementation. |
Method Detail |
---|
void recycle()
void setReference(Reference<? extends Recyclable> reference)
Reference
object that can be used by object pool
implementation. This field must not be erase by the
recycle()
method.
reference
- a Reference
object that can be used by object pool
implementation.Reference<? extends Recyclable> getReference()
setReference(Reference)
method.
Reference
object that can be used by object pool
implementation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |