|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.util.EmptyEnumeration
public final class EmptyEnumeration
This class defines enumeration with no elements. Its intended use is as
return value when method returns enumeration that has no elements. This is
a singleton implementation and instance of this class is obtained using
EmptyEnumeration.getInstance()
method.
This class should serve as a convenience implementation of an interface.
Method Summary | |
---|---|
static java.util.Enumeration |
getInstance()
Returns singleton instance of this class. |
boolean |
hasMoreElements()
Returns false. |
java.lang.Object |
nextElement()
Returns null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final java.util.Enumeration getInstance()
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
Enumeration.hasMoreElements()
public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
Enumeration.nextElement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |