org.apache.java.recycle
Class Container

java.lang.Object
  |
  +--org.apache.java.recycle.Container

public class Container
extends java.lang.Object
implements RecycleBin

This class implements the simplest recycle bin wrapping around a Stack implementation. (this should be rewritten to use collections when they are available)

Version:
$Revision: 1.3 $ $Date: 1999/06/24 00:50:49 $

Field Summary
private  java.util.Stack container
           
 
Constructor Summary
Container()
           
 
Method Summary
 Recyclable getRecyclable()
           
 int getSize()
           
 void recycle(Recyclable object)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

container

private java.util.Stack container
Constructor Detail

Container

public Container()
Method Detail

getRecyclable

public Recyclable getRecyclable()
Specified by:
getRecyclable in interface RecycleBin

recycle

public void recycle(Recyclable object)
Specified by:
recycle in interface RecycleBin

getSize

public int getSize()
Specified by:
getSize in interface RecycleBin