T - the entry typepublic abstract class MergeSortedIterators<T> extends Object implements Iterator<T>
MergeSortedIterators is a specialized implementation of a
merge sort of already sorted iterators of some type of comparable elements.
The input iterators must return the elements in sorted order according to
the provided Comparator. In addition the sequence of iterators must also
be sorted in a way that the first element of the next iterator is greater
than the first element of the previous iterator.| Constructor and Description |
|---|
MergeSortedIterators(Comparator<T> comparator) |
| Modifier and Type | Method and Description |
|---|---|
String |
description()
Provides details about this iterator
|
boolean |
hasNext() |
T |
next() |
abstract Iterator<T> |
nextIterator() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.