Kactoos

kactoos-jvm / nnl.rocks.kactoos.collection / Sorted

Sorted

class Sorted<out T : Any> : CollectionEnvelope<T>

Sorted collection.

There is no thread-safety guarantee.

Parameters

T - Element type

Since 0.4

Constructors

Name Summary
<init> Sorted(cmp: Comparator<T>, src: Collection<T>)
Sorted(cmp: Comparator<T>, vararg src: T)
Sorted(cmp: Comparator<T>, src: Iterable<T>)

Inherited Functions

Name Summary
iterator open fun iterator(): Iterator<X>

Companion Object Functions

Name Summary
invoke operator fun <T : Comparable<T>> invoke(src: Iterable<T>): Sorted<T>
operator fun <T : Comparable<T>> invoke(vararg src: T): Sorted<T>