E - the element typepublic class CompositeIterator<E> extends Object implements Iterator<E>
add(Iterator).
This implementation maintains a linked set of iterators which are invoked in sequence until all iterators are exhausted.
| Constructor and Description |
|---|
CompositeIterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Iterator<E> iterator)
Add given iterator to this composite.
|
boolean |
hasNext() |
E |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining