public final class IteratorToEnumerator<T> extends java.lang.Object implements Enumerator<T>
| Constructor and Description |
|---|
IteratorToEnumerator(java.util.Iterator<? extends T> it) |
public IteratorToEnumerator(java.util.Iterator<? extends T> it)
public T current()
Enumeratornext()
method, or the enumeration has already finished and next()
returned false, a NoSuchElementException is thrown.
Other than these, this method should not throw any exception.current in interface Enumerator<T>public boolean next()
Enumeratornext in interface Enumerator<T>