E - The type of the enumerated elements.public class IteratorEnumeration<E> extends Object implements Enumeration<E>
Iterator instance appear to be an
Enumeration instance.| Constructor and Description |
|---|
IteratorEnumeration(Iterator<E> iterator)
Constructs a new
IteratorEnumeration that will use the given
iterator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreElements()
Returns true if the underlying iterator has more elements.
|
E |
nextElement()
Returns the next element from the underlying iterator.
|
public boolean hasMoreElements()
hasMoreElements in interface Enumeration<E>public E nextElement()
nextElement in interface Enumeration<E>NoSuchElementException - if the underlying iterator has
no more elementsCopyright © 2025. All rights reserved.