kactoos-jvm / nnl.rocks.kactoos.collection / Sorted
class Sorted<out T :
Any
> :
CollectionEnvelope
<
T
>
Sorted collection.
There is no thread-safety guarantee.
T
- Element type
Since 0.4
Name | Summary |
---|---|
<init> | Sorted(cmp: Comparator < T >, src: Collection < T >) Sorted(cmp: Comparator < T >, vararg src: T ) Sorted(cmp: Comparator < T >, src: Iterable < T >) |
Name | Summary |
---|---|
iterator | open fun iterator(): Iterator < X > |
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 > |