|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jwarp.util.recycle.Container
This class implements the simplest recycle bin wrapping around a Stack implementation. (this should be rewritten to use collections when they are available)
| Constructor Summary | |
Container()
|
|
| Method Summary | |
java.util.Iterator |
getAllRecyclables()
Returns all recyclable objects given the id |
IRecyclable |
getRecyclable()
This method is called to obtain a recyclable object from this recycle bin. |
int |
getSize()
This method returns the actual number of recyclable objects contained in this recycle bin. |
void |
recycle(IRecyclable object)
This method is called to recycle a recyclable object into this container. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public Container()
| Method Detail |
public IRecyclable getRecyclable()
IRecycleBingetRecyclable in interface IRecycleBinorg.jwarp.util.recycle.IRecycleBinRecycleBinIsEmpty - when recycle bin is empty.public void recycle(IRecyclable object)
IRecycleBinclean() method is guaranteed to be called by
the RecycleBin implementation before the object is
stored.recycle in interface IRecycleBinorg.jwarp.util.recycle.IRecycleBinObjectWasDestroyed - when object is destroied.public java.util.Iterator getAllRecyclables()
getAllRecyclables in interface IRecycleBinpublic int getSize()
IRecycleBingetSize in interface IRecycleBin
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||