info.aduna.collections.iterators
Class UnionIterator<E>
java.lang.Object
info.aduna.iteration.CloseableIterationBase<E,X>
info.aduna.iteration.LookAheadIteration<E,X>
info.aduna.iteration.UnionIteration<E,RuntimeException>
info.aduna.collections.iterators.UnionIterator<E>
- All Implemented Interfaces:
- CloseableIterator<E>, CloseableIteration<E,RuntimeException>, Iteration<E,RuntimeException>, Closeable, Iterator<E>
public class UnionIterator<E>
- extends UnionIteration<E,RuntimeException>
- implements CloseableIterator<E>
An iterator that returns the bag union of the results of a number of
iterators. Note that the result of the iterator is a bag, not a set. The
UnionIterator does not do any duplicate filtering.
|
Constructor Summary |
UnionIterator(Iterable<? extends Iterator<? extends E>> args)
Creates a new UnionIterator that returns the bag union of the results of a
number of iterators. |
UnionIterator(Iterator<? extends E>... args)
Creates a new UnionIterator that returns the bag union of the results of a
number of iterators. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnionIterator
public UnionIterator(Iterator<? extends E>... args)
- Creates a new UnionIterator that returns the bag union of the results of a
number of iterators.
- Parameters:
args - The iterators containing the elements to iterate over.
UnionIterator
public UnionIterator(Iterable<? extends Iterator<? extends E>> args)
- Creates a new UnionIterator that returns the bag union of the results of a
number of iterators.
- Parameters:
args - The iterators containing the elements to iterate over.
Copyright © 1997-2008 Aduna. All Rights Reserved.