Kactoos

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

Sorted

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

Sorted iterable.

There is no thread-safety guarantee.

Parameters

T - Element type

Since 0.4

Constructors

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

Inherited Functions

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

Companion Object Functions

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