T - The object type.public class EnumeratorFromIterator<T> extends Object implements Enumeration<T>
| Constructor and Description |
|---|
EnumeratorFromIterator(Iterator<T> iterator)
Constructs the Enumeration implementing class from an Iterator.
|
| Modifier and Type | Method and Description |
|---|---|
static Enumeration<?> |
createEnumerator(Iterator<?> iterator)
Creates an instance of the Enumeration interface from an Iterator.
|
boolean |
hasMoreElements()
Returns true if the enumeration has more elements.
|
T |
nextElement()
Returns the next element in the enumeration.
|
public static Enumeration<?> createEnumerator(Iterator<?> iterator)
public boolean hasMoreElements()
hasMoreElements in interface Enumeration<T>public T nextElement()
nextElement in interface Enumeration<T>Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.