java.util
Interface Enumeration<E>
-
-
Method Summary
Methods Modifier and Type Method and Description boolean
hasMoreElements()
Returns whether thisEnumeration
has more elements.E
nextElement()
Returns the next element in thisEnumeration
.
-
-
-
Method Detail
-
hasMoreElements
boolean hasMoreElements()
Returns whether thisEnumeration
has more elements.- Returns:
true
if there are more elements,false
otherwise.- See Also:
nextElement()
-
nextElement
E nextElement()
Returns the next element in thisEnumeration
.- Returns:
- the next element..
- Throws:
NoSuchElementException
- if there are no more elements.- See Also:
hasMoreElements()
-
-