E - Type of enumerated elements.final class EnumerableEnumeration<E> extends Object implements Enumeration<E>
Enumeration encapsulating an Iterator.Enumeration,
Iterator,
Enumerator,
EnumerationEnumerator| Constructor and Description |
|---|
EnumerableEnumeration(Iterator<E> source)
Constructs a new
EnumerableEnumeration instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreElements() |
E |
nextElement() |
public EnumerableEnumeration(Iterator<E> source)
EnumerableEnumeration instance.
The new EnumerableEnumeration stores its source
internally.
source - Iterator instance to get elements from.public boolean hasMoreElements()
hasMoreElements in interface Enumeration<E>public E nextElement()
nextElement in interface Enumeration<E>Copyright © 2016. All rights reserved.