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(Iterable<? extends 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, nextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, hasNext, nextprotected E getNext()
AbstractIteratorgetNext in class AbstractIterator<E>public void close()
close in interface AutoCloseableclose in interface CloseableIterator<E>Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.