public class UnionIteration<E,X extends Exception> extends LookAheadIteration<E,X>
| Constructor and Description |
|---|
UnionIteration(Iterable<? extends Iteration<? extends E,X>> args)
Creates a new UnionIteration that returns the bag union of the results of a number of Iterations.
|
UnionIteration(Iteration<? extends E,X>... args)
Creates a new UnionIteration that returns the bag union of the results of a number of Iterations.
|
| Modifier and Type | Method and Description |
|---|---|
protected E |
getNextElement()
Gets the next element.
|
protected void |
handleClose()
Called by
AbstractCloseableIteration.close() when it is called for the first time. |
hasNext, next, removeclose, isClosedpublic UnionIteration(Iteration<? extends E,X>... args)
args - The Iterations containing the elements to iterate over.protected E getNextElement() throws X extends Exception
LookAheadIterationgetNextElement in class LookAheadIteration<E,X extends Exception>X extends Exceptionprotected void handleClose()
throws X extends Exception
AbstractCloseableIterationAbstractCloseableIteration.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 LookAheadIteration<E,X extends Exception>XX extends ExceptionCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.