|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.iteration.CloseableIterationBase<E,X>
info.aduna.iteration.LookAheadIteration<E,X>
info.aduna.iteration.UnionIteration<E,X>
public class UnionIteration<E,X extends Exception>
An Iteration that returns the bag union of the results of a number of Iterations. 'Bag union' means that the UnionIteration does not filter duplicate objects.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
protected E |
getNextElement()
Gets the next element. |
protected void |
handleClose()
Called by CloseableIterationBase.close() when it is called for the first time. |
| Methods inherited from class info.aduna.iteration.LookAheadIteration |
|---|
hasNext, next, remove |
| Methods inherited from class info.aduna.iteration.CloseableIterationBase |
|---|
close, isClosed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnionIteration(Iteration<? extends E,X>... args)
args - The Iterations containing the elements to iterate over.public UnionIteration(Iterable<? extends Iteration<? extends E,X>> args)
args - The Iterations containing the elements to iterate over.| Method Detail |
|---|
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
CloseableIterationBaseCloseableIterationBase.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||