public class ConcatIterator<E> extends AbstractIterator<E> implements CloseableIterator<E>
CloseableIterator they will be closed
when iterated upon fully or the last used iterator will be close when this iterator this closed.
Removal is implemented and will invoke remove on the last used iterator
| Constructor and Description |
|---|
ConcatIterator(java.lang.Iterable<? extends java.lang.Iterable<E>> iterableIterables) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected E |
getNext()
Method to implement to provide an iterator implementation.
|
void |
remove() |
forEachRemaining, hasNext, nextpublic ConcatIterator(java.lang.Iterable<? extends java.lang.Iterable<E>> iterableIterables)
protected E getNext()
AbstractIteratorgetNext in class AbstractIterator<E>public void close()
close in interface java.lang.AutoCloseableclose in interface CloseableIterator<E>public void remove()
remove in interface java.util.Iterator<E>