| Constructor and Description |
|---|
IteratorEnumeration(java.util.Iterator<T> iterator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreElements()
Tests if this enumeration contains more elements.
|
T |
nextElement()
Returns the next element of this enumeration if this enumeration
object has at least one more element to provide.
|
public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumeration<T>true if and only if this enumeration object
contains at least one more element to provide;
false otherwise.public T nextElement()
nextElement in interface java.util.Enumeration<T>java.util.NoSuchElementException - if no more elements exist.