java.util.Enumeration<E> |
Known Indirect Subclasses |
A legacy iteration interface.
New code should use Iterator
instead. Iterator
replaces the
enumeration interface and adds a way to remove elements from a collection.
If you have an Enumeration
and want a Collection
, you
can use list(Enumeration
to get a List
.
If you need an Enumeration
for a legacy API and have a
Collection
, you can use enumeration(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. |
---|