java.util.Enumeration<E> |
Known Indirect Subclasses |
An Enumeration is used to sequence over a collection of objects.
Preferably an Iterator should be used. Iterator replaces the Enumeration interface and adds a way to remove elements from a collection.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns whether this
Enumeration has more elements. | |||||||||||
Returns the next element in this
Enumeration . |
Returns whether this Enumeration
has more elements.
true
if there are more elements, false
otherwise.Returns the next element in this Enumeration
.
NoSuchElementException | if there are no more elements. |
---|