public final class MergedIterator<T extends Comparable<T>> extends Object implements Iterator<T>
If built with removeDuplicates set to true and an element
appears in multiple iterators then it is deduplicated, that is this iterator
returns the sorted union of elements.
If built with removeDuplicates set to false then all elements
in all iterators are returned.
Caveats:
| Constructor and Description |
|---|
MergedIterator(boolean removeDuplicates,
Iterator<T>... iterators) |
MergedIterator(Iterator<T>... iterators) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.