Fix unresolved references to SortedSet in docs

This commit is contained in:
Ilya Gorbunov
2018-02-12 15:27:10 +03:00
parent 2eba8efb80
commit 6d035f1d28
6 changed files with 19 additions and 19 deletions
+10 -10
View File
@@ -8020,70 +8020,70 @@ public fun CharArray.toSet(): Set<Char> {
}
/**
* Returns a [SortedSet] of all elements.
* Returns a [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] of all elements.
* Returns a [SortedSet][java.util.SortedSet] of all elements.
*/
public fun ByteArray.toSortedSet(): java.util.SortedSet<Byte> {
return toCollection(java.util.TreeSet<Byte>())
}
/**
* Returns a [SortedSet] of all elements.
* Returns a [SortedSet][java.util.SortedSet] of all elements.
*/
public fun ShortArray.toSortedSet(): java.util.SortedSet<Short> {
return toCollection(java.util.TreeSet<Short>())
}
/**
* Returns a [SortedSet] of all elements.
* Returns a [SortedSet][java.util.SortedSet] of all elements.
*/
public fun IntArray.toSortedSet(): java.util.SortedSet<Int> {
return toCollection(java.util.TreeSet<Int>())
}
/**
* Returns a [SortedSet] of all elements.
* Returns a [SortedSet][java.util.SortedSet] of all elements.
*/
public fun LongArray.toSortedSet(): java.util.SortedSet<Long> {
return toCollection(java.util.TreeSet<Long>())
}
/**
* Returns a [SortedSet] of all elements.
* Returns a [SortedSet][java.util.SortedSet] of all elements.
*/
public fun FloatArray.toSortedSet(): java.util.SortedSet<Float> {
return toCollection(java.util.TreeSet<Float>())
}
/**
* Returns a [SortedSet] of all elements.
* Returns a [SortedSet][java.util.SortedSet] of all elements.
*/
public fun DoubleArray.toSortedSet(): java.util.SortedSet<Double> {
return toCollection(java.util.TreeSet<Double>())
}
/**
* Returns a [SortedSet] of all elements.
* Returns a [SortedSet][java.util.SortedSet] of all elements.
*/
public fun BooleanArray.toSortedSet(): java.util.SortedSet<Boolean> {
return toCollection(java.util.TreeSet<Boolean>())
}
/**
* Returns a [SortedSet] of all elements.
* Returns a [SortedSet][java.util.SortedSet] of all elements.
*/
public fun CharArray.toSortedSet(): java.util.SortedSet<Char> {
return toCollection(java.util.TreeSet<Char>())
}
/**
* Returns a [SortedSet] of all elements.
* Returns a [SortedSet][java.util.SortedSet] of all elements.
*
* Elements in the set returned are sorted according to the given [comparator].
*/
@@ -1115,14 +1115,14 @@ public fun <T> Iterable<T>.toSet(): Set<T> {
}
/**
* Returns a [SortedSet] of all elements.
* Returns a [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] of all elements.
* Returns a [SortedSet][java.util.SortedSet] of all elements.
*
* Elements in the set returned are sorted according to the given [comparator].
*/
+2 -2
View File
@@ -696,7 +696,7 @@ public fun <T> Sequence<T>.toSet(): Set<T> {
}
/**
* Returns a [SortedSet] of all elements.
* Returns a [SortedSet][java.util.SortedSet] of all elements.
*
* The operation is _terminal_.
*/
@@ -705,7 +705,7 @@ public fun <T: Comparable<T>> Sequence<T>.toSortedSet(): java.util.SortedSet<T>
}
/**
* Returns a [SortedSet] of all elements.
* Returns a [SortedSet][java.util.SortedSet] of all elements.
*
* Elements in the set returned are sorted according to the given [comparator].
*
+1 -1
View File
@@ -626,7 +626,7 @@ public fun CharSequence.toSet(): Set<Char> {
}
/**
* Returns a [SortedSet] of all characters.
* Returns a [SortedSet][java.util.SortedSet] of all characters.
*/
public fun CharSequence.toSortedSet(): java.util.SortedSet<Char> {
return toCollection(java.util.TreeSet<Char>())
@@ -88,13 +88,13 @@ public fun <T> setOf(element: T): Set<T> = java.util.Collections.singleton(eleme
/**
* Returns a new [SortedSet] with the given elements.
* Returns a new [java.util.SortedSet] with the given elements.
*/
@JvmVersion
public fun <T> sortedSetOf(vararg elements: T): java.util.TreeSet<T> = elements.toCollection(java.util.TreeSet<T>())
/**
* Returns a new [SortedSet] with the given [comparator] and elements.
* Returns a new [java.util.SortedSet] with the given [comparator] and elements.
*/
@JvmVersion
public fun <T> sortedSetOf(comparator: Comparator<in T>, vararg elements: T): java.util.TreeSet<T> = elements.toCollection(java.util.TreeSet<T>(comparator))