Spec-Zone.ru › Kotlin 2

sortedSetOf

kotlin-stdlib/kotlin.collections/sortedSetOf

Начиная с Kotlin: 1.0

fun <T> sortedSetOf(vararg elements: T): TreeSet<T>

Возвращает новый java.util.SortedSet с указанными элементами.


fun <T> sortedSetOf(comparator: Comparator<in T>, vararg elements: T): TreeSet<T>

Возвращает новый java.util.SortedSet с указанным компаратором и элементами.

© 2010–2026 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/sorted-set-of.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API