T
- Element typepublic final class Sorted<T extends Comparable<? super T>> extends Object implements Iterator<T>
There is no thread-safety guarantee.
Constructor and Description |
---|
Sorted(Comparator<T> cmp,
Iterator<T> src)
Ctor.
|
Sorted(Iterator<T> src)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
T |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
public Sorted(Comparator<T> cmp, Iterator<T> src)
src
- The underlying iteratorcmp
- The comparatorCopyright © 2017 Cactoos. All rights reserved.