uci.util
Class EnumerationEmpty

java.lang.Object
  |
  +--uci.util.EnumerationEmpty

public class EnumerationEmpty
extends Object
implements Enumeration, Serializable

A enumeration that is always empty. Functially equivelant to: (new Vector()).elements(); This is useful when you must pass or return an enumeration, but you do not have any elements.

See Also:
uci.gef.DiagramElement#keysIn, Serialized Form

Field Summary
protected static EnumerationEmpty _theInstance
           
 
Constructor Summary
EnumerationEmpty()
           
 
Method Summary
 boolean hasMoreElements()
           
 Object nextElement()
           
static EnumerationEmpty theInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_theInstance

protected static EnumerationEmpty _theInstance
Constructor Detail

EnumerationEmpty

public EnumerationEmpty()
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration

nextElement

public Object nextElement()
Specified by:
nextElement in interface Enumeration

theInstance

public static EnumerationEmpty theInstance()