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, remove
close, isClosed
public UnionIteration(Iteration<? extends E,X>... args)
args
- The Iterations containing the elements to iterate over.protected E getNextElement() throws X extends Exception
LookAheadIteration
getNextElement
in class LookAheadIteration<E,X extends Exception>
X extends Exception
protected void handleClose() throws X extends Exception
AbstractCloseableIteration
AbstractCloseableIteration.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>
X
X extends Exception
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.