T
- Element typepublic final class Sorted<T> extends IterableEnvelope<T>
There is no thread-safety guarantee.
Constructor and Description |
---|
Sorted(Comparator<? super T> cmp,
Iterable<? extends T> src)
Ctor.
|
Sorted(Comparator<? super T> cmp,
T... src)
Ctor.
|
Sorted(Iterable<? extends T> src)
Ctor.
|
Sorted(T... src)
Ctor.
|
equals, hashCode, iterator, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
@SafeVarargs public Sorted(T... src)
src
- The underlying iterablepublic Sorted(Iterable<? extends 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<? super T> cmp, T... src)
cmp
- The comparatorsrc
- The underlying iterablepublic Sorted(Comparator<? super T> cmp, Iterable<? extends T> src)
cmp
- The comparatorsrc
- The underlying iterableCopyright © 2017–2021 Cactoos. All rights reserved.