DthingApi
|
Public Member Functions | |
boolean | hasMoreElements () |
E | nextElement () |
A legacy iteration interface.
New code should use Iterator instead.
replaces the enumeration interface and adds a way to remove elements from a collection.
If you have an
and want a
, you can use Collections#list to get a
.
If you need an
for a legacy API and have a
, you can use Collections#enumeration.
boolean java.util.Enumeration< E >.hasMoreElements | ( | ) |
Returns whether this
has more elements.
E java.util.Enumeration< E >.nextElement | ( | ) |
Returns the next element in this
.
NoSuchElementException | if there are no more elements. |