|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.java.recycle.ControlledContainer
This class wraps around a RecycleBin to control it with a given controller.
Field Summary | |
private RecycleBin |
container
|
private Controller |
controller
|
Constructor Summary | |
ControlledContainer(RecycleBin container,
Controller controller)
|
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 Controller controller
Constructor Detail |
public ControlledContainer(RecycleBin container, Controller controller)
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 |