Fix build.
This commit is contained in:
@@ -260,29 +260,35 @@ public fun <T> MutableCollection<in T>.retainAll(elements: Iterable<T>): Boolean
|
|||||||
/**
|
/**
|
||||||
* Retains only elements of this [MutableCollection] that are contained in the given [elements] array.
|
* Retains only elements of this [MutableCollection] that are contained in the given [elements] array.
|
||||||
*/
|
*/
|
||||||
|
@Fixme
|
||||||
public fun <T> MutableCollection<in T>.retainAll(elements: Array<out T>): Boolean {
|
public fun <T> MutableCollection<in T>.retainAll(elements: Array<out T>): Boolean {
|
||||||
if (elements.isNotEmpty())
|
TODO()
|
||||||
return retainAll(elements.toHashSet())
|
//if (elements.isNotEmpty())
|
||||||
else
|
// return retainAll(elements.toHashSet())
|
||||||
return retainNothing()
|
//else
|
||||||
|
// return retainNothing()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retains only elements of this [MutableCollection] that are contained in the given [elements] sequence.
|
* Retains only elements of this [MutableCollection] that are contained in the given [elements] sequence.
|
||||||
*/
|
*/
|
||||||
|
@Fixme
|
||||||
public fun <T> MutableCollection<in T>.retainAll(elements: Sequence<T>): Boolean {
|
public fun <T> MutableCollection<in T>.retainAll(elements: Sequence<T>): Boolean {
|
||||||
val set = elements.toHashSet()
|
TODO()
|
||||||
if (set.isNotEmpty())
|
//val set = elements.toHashSet()
|
||||||
return retainAll(set)
|
//if (set.isNotEmpty())
|
||||||
else
|
// return retainAll(set)
|
||||||
return retainNothing()
|
//else
|
||||||
|
// return retainNothing()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Fixme
|
||||||
private fun MutableCollection<*>.retainNothing(): Boolean {
|
private fun MutableCollection<*>.retainNothing(): Boolean {
|
||||||
val result = isNotEmpty()
|
TODO()
|
||||||
clear()
|
//val result = isNotEmpty()
|
||||||
return result
|
//clear()
|
||||||
} */
|
//return result
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sorts elements in the list in-place according to their natural sort order.
|
* Sorts elements in the list in-place according to their natural sort order.
|
||||||
@@ -296,8 +302,6 @@ public fun <T : Comparable<T>> MutableList<T>.sort(): Unit {
|
|||||||
/**
|
/**
|
||||||
* Sorts elements in the list in-place according to the order specified with [comparator].
|
* Sorts elements in the list in-place according to the order specified with [comparator].
|
||||||
*/
|
*/
|
||||||
@Fixme
|
//public fun <T> MutableList<T>.sortWith(comparator: Comparator<in T>): Unit {
|
||||||
public fun <T> MutableList<T>.sortWith(comparator: Comparator<in T>): Unit {
|
//if (size > 1) java.util.Collections.sort(this, comparator)
|
||||||
TODO()
|
//}
|
||||||
//if (size > 1) java.util.Collections.sort(this, comparator)
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user