T
- Element typepublic final class Sorted<T extends Comparable<? super T>> extends Object implements Iterable<T>
There is no thread-safety guarantee.
Constructor and Description |
---|
Sorted(Comparator<T> cmp,
Iterable<T> src)
Ctor.
|
Sorted(Comparator<T> cmp,
T... src)
Ctor.
|
Sorted(Iterable<T> src)
Ctor.
|
Sorted(T... src)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Iterator<T> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
@SafeVarargs public Sorted(T... src)
src
- The underlying iterable@SafeVarargs public Sorted(Comparator<T> cmp, T... src)
src
- The underlying iterablecmp
- The comparatorpublic Sorted(Comparator<T> cmp, Iterable<T> src)
src
- The underlying iterablecmp
- The comparatorCopyright © 2017 Cactoos. All rights reserved.