|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.claritysys.util.EmptyEnumeration
public final class EmptyEnumeration
EmptyEnumeration provides a memory-efficient way for methods to return an Enumeration which has no elements. Since there are no instance variables used it is also multi-thread safe.
To acquire an instance, invoke instance.
Enumeration| Method Summary | |
|---|---|
boolean |
hasMoreElements()
Return false. |
static java.util.Enumeration |
instance()
Return the instance. |
java.lang.Object |
nextElement()
Throw an exception if called. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.Enumeration instance()
public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumerationpublic java.lang.Object nextElement()
nextElement in interface java.util.Enumeration
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||