public class UnionIterator<E> extends LookAheadIterator<E>
| Constructor and Description | 
|---|
| UnionIterator(Iterable<? extends E>... args)Creates a new UnionIterator that returns the bag union of the results of a number of Iterators. | 
| UnionIterator(Iterable<? extends Iterable<? extends E>> args) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected E | getNextElement()Gets the next element. | 
| protected void | handleClose()Called by  AbstractCloseableIterator.close()when it is called for the first time. | 
handleAlreadyClosed, hasNext, next, removeclose, isClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic UnionIterator(Iterable<? extends E>... args)
args - The Iterators containing the elements to iterate over.protected E getNextElement()
LookAheadIteratorgetNextElement in class LookAheadIterator<E>protected void handleClose()
                    throws IOException
AbstractCloseableIteratorAbstractCloseableIterator.close() when it is called for the first time. This method is only called once on each iteration.
 By default, this method does nothing.handleClose in class LookAheadIterator<E>IOExceptionCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.