A - E - public class MergeSortedIterator<A,E> extends Object implements Iterator<E>
| Constructor and Description |
|---|
MergeSortedIterator(Iterator<A> one,
Iterator<A> two,
Comparator<A> comparator,
BiFunction<A,A,E> mergeFunction) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
E |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic MergeSortedIterator(Iterator<A> one, Iterator<A> two, Comparator<A> comparator, BiFunction<A,A,E> mergeFunction)
one - The first sorted iteratortwo - The second sorted iteratorcomparator - The comparator that compare items of iteratorsmergeFunction - The function that merge elements of iteratorsCopyright © 2020 Vitam. All rights reserved.