org.tigris.gef.util
Class EnumerationEmpty
java.lang.Object
org.tigris.gef.util.EnumerationEmpty
- All Implemented Interfaces:
- java.io.Serializable, java.util.Enumeration, java.util.Iterator
public class EnumerationEmpty
- extends java.lang.Object
- implements java.util.Enumeration, java.util.Iterator, java.io.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:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_theInstance
protected static EnumerationEmpty _theInstance
EnumerationEmpty
public EnumerationEmpty()
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface java.util.Enumeration
nextElement
public java.lang.Object nextElement()
- Specified by:
nextElement
in interface java.util.Enumeration
theInstance
public static EnumerationEmpty theInstance()
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
next
public java.lang.Object next()
- Specified by:
next
in interface java.util.Iterator
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator