|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ccg.util.EmptyEnumeration
public class EmptyEnumeration
A Empty Enumeration object This class is used to create a enumeration which has no elements. It can be handy when you want to define a routine which returns an java.util.Enumeration object, but don't want to return null when you have no elements.
Enumeration| Constructor Summary | |
|---|---|
EmptyEnumeration()
Constructor for the EmptyEnumeration class - doesn't need to do anything. |
|
| Method Summary | |
|---|---|
boolean |
hasMoreElements()
Determine if there are more elements. |
Object |
nextElement()
Get next element in Enumeration (there never will be any) This returns the next item in the Enumeration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmptyEnumeration()
| Method Detail |
|---|
public boolean hasMoreElements()
hasMoreElements in interface EnumerationEnumerationpublic Object nextElement()
nextElement in interface EnumerationEnumeration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||