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, next
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, hasNext, next
protected E getNext()
AbstractIterator
getNext
in class AbstractIterator<E>
public void close()
close
in interface AutoCloseable
close
in interface CloseableIterator<E>
Copyright © 2021 JBoss by Red Hat. All rights reserved.