English | 简体中文

api-docs / org.ktorm.entity / toSortedSet

toSortedSet

fun <E> EntitySequence<E, *>.toSortedSet(): SortedSet<E> where E : Any, E : Comparable<E> (source code)

Return a SortedSet containing all the elements of this sequence.

The operation is terminal.

fun <E> EntitySequence<E, *>.toSortedSet(
    comparator: Comparator<in E>
): SortedSet<E> where E : Any, E : Comparable<E>
(source code)

Return a SortedSet containing all the elements of this sequence.

Elements in the set returned are sorted according to the given comparator.

The operation is terminal.