Kactoos

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

Sorted

class Sorted<T : Any> : ListEnvelope<T>

Sorted list.

There is no thread-safety guarantee.

Parameters

T - Element type

See Also

StickyList

Since 0.4

Constructors

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

Inherited Functions

Name Summary
iterator open fun iterator(): Iterator<T>
listIterator open fun listIterator(): ListIterator<T>
open fun listIterator(index: Int): ListIterator<T>

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>