|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.java.recycle.LimitedContainer
This class wraps around a container to limit its capacity.
Field Summary | |
private int |
capacity
|
private RecycleBin |
container
|
Constructor Summary | |
LimitedContainer(RecycleBin container,
int capacity)
|
Method Summary | |
Recyclable |
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(Recyclable object)
This method is called to recycle a recyclable object into this container. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private RecycleBin container
private int capacity
Constructor Detail |
public LimitedContainer(RecycleBin container, int capacity)
Method Detail |
public Recyclable getRecyclable()
public void recycle(Recyclable object)
clean()
method is guaranteed to be called by
the RecycleBin implementation before the object is
stored.public int getSize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |