E
- enumeration elementpublic final class IteratorEnumeration<E> extends Object implements Enumeration<E>
Modifier and Type | Field and Description |
---|---|
private Iterator<E> |
iterator
Internal iterator.
|
Constructor and Description |
---|
IteratorEnumeration(Iterable<E> iterable)
Construct enumeration from iterable.
|
IteratorEnumeration(Iterator<E> iterator)
Construct enumeration from iterator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasMoreElements()
Implements enumeration has more elements.
|
E |
nextElement()
Implements enumeration next element.
|
public IteratorEnumeration(Iterable<E> iterable)
iterable
- iterable.public E nextElement()
nextElement
in interface Enumeration<E>
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration<E>
Copyright © 2018. All rights reserved.