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> comparator,
Iterator<T> iterator)
Ctor.
|
Sorted(Iterator<T> items)
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> comparator, Iterator<T> iterator)
iterator
- The underlying iteratorcomparator
- The comparatorCopyright © 2017 Cactoos. All rights reserved.