|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.pool.RecyclableSupport
public class RecyclableSupport
A support class for recyclable objects implementing default methods.
| Constructor Summary | |
|---|---|
RecyclableSupport()
Constructs a new recyclable support. |
|
RecyclableSupport(Recyclable adaptee)
Constructs a new recyclable adapter. |
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes the object by setting its disposed flag. |
boolean |
isDisposed()
Checks whether the object is disposed. |
void |
recycle()
Recycles the object by removing its disposed flag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecyclableSupport()
public RecyclableSupport(Recyclable adaptee)
adaptee - the recyclable adaptee.| Method Detail |
|---|
public void recycle()
recycle in interface Recyclablepublic void dispose()
dispose in interface Recyclablepublic boolean isDisposed()
isDisposed in interface Recyclable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||