|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jwarp.util.recycle.LimitedContainer
This class wraps around a container to limit its capacity.
| Constructor Summary | |
LimitedContainer(IRecycleBin container,
int capacity)
Creates a new limited 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()
Get the current size of the container. |
void |
recycle(IRecyclable object)
Recicle an object |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public LimitedContainer(IRecycleBin container,
int capacity)
container - The basic recycle bincapacity - The capacity| Method Detail |
public IRecyclable getRecyclable()
IRecycleBingetRecyclable in interface IRecycleBinpublic void recycle(IRecyclable object)
recycle in interface IRecycleBinobject - The objet to be recycledpublic int getSize()
getSize in interface IRecycleBinpublic java.util.Iterator getAllRecyclables()
getAllRecyclables in interface IRecycleBin
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||