Iterator instance appear to be an
Enumeration instance.
| Modifier and Type | Field and Description |
|---|---|
| private Iterator | iterator
The iterator being decorated. |
| Access | Constructor and Description |
|---|---|
| public | IteratorEnumeration()
Constructs a new |
| public | IteratorEnumeration(final Iterator<? extends E>
the iterator to use iterator)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public Iterator | |
| public boolean | Returns: true if the underlying iterator has more elementsImplements java. |
| public E | Returns: the next element from the underlying iterator.Implements java. |
| public void | setIterator(final Iterator<? extends E>
the new underlying iterator iterator)Sets the underlying iterator. |
| iterator | back to summary |
|---|---|
| private Iterator<? extends E> iterator The iterator being decorated. | |
| IteratorEnumeration | back to summary |
|---|---|
| public IteratorEnumeration() Constructs a new | |
| IteratorEnumeration | back to summary |
|---|---|
| public IteratorEnumeration(final Iterator<? extends E> iterator) Constructs a new
| |
| getIterator | back to summary |
|---|---|
| public Iterator Returns the underlying iterator.
| |
| hasMoreElements | back to summary |
|---|---|
| public boolean hasMoreElements() Implements java. Returns true if the underlying iterator has more elements.
| |
| nextElement | back to summary |
|---|---|
| public E nextElement() Implements java. Returns the next element from the underlying iterator.
| |
| setIterator | back to summary |
|---|---|
| public void setIterator(final Iterator<? extends E> iterator) Sets the underlying iterator.
| |