T
- Element typepublic final class Sorted<T> extends IterableEnvelope<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.
|
iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
@SafeVarargs public Sorted(T... src)
src
- The underlying iterablepublic Sorted(Iterable<T> src)
If you're using this ctor you must be sure that type T
implements Comparable
interface. Otherwise, there will be
a type casting exception in runtime.
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.