toMutableList documentation is vague #KT-35231
This commit is contained in:
@@ -2057,70 +2057,70 @@ public actual fun CharArray.toTypedArray(): Array<Char> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a [SortedSet][java.util.SortedSet] of all elements.
|
||||
* Returns a new [SortedSet][java.util.SortedSet] of all elements.
|
||||
*/
|
||||
public fun <T : Comparable<T>> Array<out T>.toSortedSet(): java.util.SortedSet<T> {
|
||||
return toCollection(java.util.TreeSet<T>())
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a [SortedSet][java.util.SortedSet] of all elements.
|
||||
* Returns a new [SortedSet][java.util.SortedSet] of all elements.
|
||||
*/
|
||||
public fun ByteArray.toSortedSet(): java.util.SortedSet<Byte> {
|
||||
return toCollection(java.util.TreeSet<Byte>())
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a [SortedSet][java.util.SortedSet] of all elements.
|
||||
* Returns a new [SortedSet][java.util.SortedSet] of all elements.
|
||||
*/
|
||||
public fun ShortArray.toSortedSet(): java.util.SortedSet<Short> {
|
||||
return toCollection(java.util.TreeSet<Short>())
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a [SortedSet][java.util.SortedSet] of all elements.
|
||||
* Returns a new [SortedSet][java.util.SortedSet] of all elements.
|
||||
*/
|
||||
public fun IntArray.toSortedSet(): java.util.SortedSet<Int> {
|
||||
return toCollection(java.util.TreeSet<Int>())
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a [SortedSet][java.util.SortedSet] of all elements.
|
||||
* Returns a new [SortedSet][java.util.SortedSet] of all elements.
|
||||
*/
|
||||
public fun LongArray.toSortedSet(): java.util.SortedSet<Long> {
|
||||
return toCollection(java.util.TreeSet<Long>())
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a [SortedSet][java.util.SortedSet] of all elements.
|
||||
* Returns a new [SortedSet][java.util.SortedSet] of all elements.
|
||||
*/
|
||||
public fun FloatArray.toSortedSet(): java.util.SortedSet<Float> {
|
||||
return toCollection(java.util.TreeSet<Float>())
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a [SortedSet][java.util.SortedSet] of all elements.
|
||||
* Returns a new [SortedSet][java.util.SortedSet] of all elements.
|
||||
*/
|
||||
public fun DoubleArray.toSortedSet(): java.util.SortedSet<Double> {
|
||||
return toCollection(java.util.TreeSet<Double>())
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a [SortedSet][java.util.SortedSet] of all elements.
|
||||
* Returns a new [SortedSet][java.util.SortedSet] of all elements.
|
||||
*/
|
||||
public fun BooleanArray.toSortedSet(): java.util.SortedSet<Boolean> {
|
||||
return toCollection(java.util.TreeSet<Boolean>())
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a [SortedSet][java.util.SortedSet] of all elements.
|
||||
* Returns a new [SortedSet][java.util.SortedSet] of all elements.
|
||||
*/
|
||||
public fun CharArray.toSortedSet(): java.util.SortedSet<Char> {
|
||||
return toCollection(java.util.TreeSet<Char>())
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a [SortedSet][java.util.SortedSet] of all elements.
|
||||
* Returns a new [SortedSet][java.util.SortedSet] of all elements.
|
||||
*
|
||||
* Elements in the set returned are sorted according to the given [comparator].
|
||||
*/
|
||||
|
||||
@@ -40,14 +40,14 @@ public actual fun <T> MutableList<T>.reverse(): Unit {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a [SortedSet][java.util.SortedSet] of all elements.
|
||||
* Returns a new [SortedSet][java.util.SortedSet] of all elements.
|
||||
*/
|
||||
public fun <T : Comparable<T>> Iterable<T>.toSortedSet(): java.util.SortedSet<T> {
|
||||
return toCollection(java.util.TreeSet<T>())
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a [SortedSet][java.util.SortedSet] of all elements.
|
||||
* Returns a new [SortedSet][java.util.SortedSet] of all elements.
|
||||
*
|
||||
* Elements in the set returned are sorted according to the given [comparator].
|
||||
*/
|
||||
|
||||
@@ -36,7 +36,7 @@ public fun <C : MutableCollection<in R>, R> Sequence<*>.filterIsInstanceTo(desti
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a [SortedSet][java.util.SortedSet] of all elements.
|
||||
* Returns a new [SortedSet][java.util.SortedSet] of all elements.
|
||||
*
|
||||
* The operation is _terminal_.
|
||||
*/
|
||||
@@ -45,7 +45,7 @@ public fun <T : Comparable<T>> Sequence<T>.toSortedSet(): java.util.SortedSet<T>
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a [SortedSet][java.util.SortedSet] of all elements.
|
||||
* Returns a new [SortedSet][java.util.SortedSet] of all elements.
|
||||
*
|
||||
* Elements in the set returned are sorted according to the given [comparator].
|
||||
*
|
||||
|
||||
@@ -25,7 +25,7 @@ public actual inline fun CharSequence.elementAt(index: Int): Char {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a [SortedSet][java.util.SortedSet] of all characters.
|
||||
* Returns a new [SortedSet][java.util.SortedSet] of all characters.
|
||||
*/
|
||||
public fun CharSequence.toSortedSet(): java.util.SortedSet<Char> {
|
||||
return toCollection(java.util.TreeSet<Char>())
|
||||
|
||||
Reference in New Issue
Block a user