T1 - type returned by the first iteratorT2 - type returned by the second iteratorR - type returned by this iteratorpublic class MergingIterator<T1,T2,R> extends Object implements Iterator<R>
| Modifier and Type | Field and Description |
|---|---|
protected Iterator<T1> |
leftIterator |
protected Iterator<T2> |
rightIterator |
| Constructor and Description |
|---|
MergingIterator(Iterator<T1> leftIterator,
Iterator<T2> rightIterator,
BiFunction<T1,T2,R> mergeFunction) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
R |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removeCopyright © 2024 The Apache Software Foundation. All rights reserved.