Nullable Array.contentEquals/contentHashCode/contentToString #KT-34161
This commit is contained in:
@@ -6015,8 +6015,24 @@ public expect fun CharArray.asList(): List<Char>
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect infix fun <T> Array<out T>.contentDeepEquals(other: Array<out T>): Boolean
|
||||
|
||||
/**
|
||||
* Returns `true` if the two specified arrays are *deeply* equal to one another,
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*
|
||||
* The specified arrays are also considered deeply equal if both are `null`.
|
||||
*
|
||||
* If two corresponding elements are nested arrays, they are also compared deeply.
|
||||
* If any of arrays contains itself on any nesting level the behavior is undefined.
|
||||
*
|
||||
* The elements of other types are compared for equality with the [equals][Any.equals] function.
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect infix fun <T> Array<out T>?.contentDeepEquals(other: Array<out T>?): Boolean
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
* Nested arrays are treated as lists too.
|
||||
@@ -6024,8 +6040,18 @@ public expect infix fun <T> Array<out T>.contentDeepEquals(other: Array<out T>):
|
||||
* If any of arrays contains itself on any nesting level the behavior is undefined.
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun <T> Array<out T>.contentDeepHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
* Nested arrays are treated as lists too.
|
||||
*
|
||||
* If any of arrays contains itself on any nesting level the behavior is undefined.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun <T> Array<out T>?.contentDeepHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a string representation of the contents of this array as if it is a [List].
|
||||
* Nested arrays are treated as lists too.
|
||||
@@ -6036,8 +6062,21 @@ public expect fun <T> Array<out T>.contentDeepHashCode(): Int
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentDeepToString
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun <T> Array<out T>.contentDeepToString(): String
|
||||
|
||||
/**
|
||||
* Returns a string representation of the contents of this array as if it is a [List].
|
||||
* Nested arrays are treated as lists too.
|
||||
*
|
||||
* If any of arrays contains itself on any nesting level that reference
|
||||
* is rendered as `"[...]"` to prevent recursion.
|
||||
*
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentDeepToString
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun <T> Array<out T>?.contentDeepToString(): String
|
||||
|
||||
/**
|
||||
* Returns `true` if the two specified arrays are *structurally* equal to one another,
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
@@ -6046,6 +6085,7 @@ public expect fun <T> Array<out T>.contentDeepToString(): String
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect infix fun <T> Array<out T>.contentEquals(other: Array<out T>): Boolean
|
||||
|
||||
/**
|
||||
@@ -6056,6 +6096,7 @@ public expect infix fun <T> Array<out T>.contentEquals(other: Array<out T>): Boo
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect infix fun ByteArray.contentEquals(other: ByteArray): Boolean
|
||||
|
||||
/**
|
||||
@@ -6066,6 +6107,7 @@ public expect infix fun ByteArray.contentEquals(other: ByteArray): Boolean
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect infix fun ShortArray.contentEquals(other: ShortArray): Boolean
|
||||
|
||||
/**
|
||||
@@ -6076,6 +6118,7 @@ public expect infix fun ShortArray.contentEquals(other: ShortArray): Boolean
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect infix fun IntArray.contentEquals(other: IntArray): Boolean
|
||||
|
||||
/**
|
||||
@@ -6086,6 +6129,7 @@ public expect infix fun IntArray.contentEquals(other: IntArray): Boolean
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect infix fun LongArray.contentEquals(other: LongArray): Boolean
|
||||
|
||||
/**
|
||||
@@ -6096,6 +6140,7 @@ public expect infix fun LongArray.contentEquals(other: LongArray): Boolean
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect infix fun FloatArray.contentEquals(other: FloatArray): Boolean
|
||||
|
||||
/**
|
||||
@@ -6106,6 +6151,7 @@ public expect infix fun FloatArray.contentEquals(other: FloatArray): Boolean
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean
|
||||
|
||||
/**
|
||||
@@ -6116,6 +6162,7 @@ public expect infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean
|
||||
|
||||
/**
|
||||
@@ -6126,68 +6173,223 @@ public expect infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect infix fun CharArray.contentEquals(other: CharArray): Boolean
|
||||
|
||||
/**
|
||||
* Returns `true` if the two specified arrays are *structurally* equal to one another,
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*
|
||||
* The elements are compared for equality with the [equals][Any.equals] function.
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect infix fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean
|
||||
|
||||
/**
|
||||
* Returns `true` if the two specified arrays are *structurally* equal to one another,
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*
|
||||
* The elements are compared for equality with the [equals][Any.equals] function.
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect infix fun ByteArray?.contentEquals(other: ByteArray?): Boolean
|
||||
|
||||
/**
|
||||
* Returns `true` if the two specified arrays are *structurally* equal to one another,
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*
|
||||
* The elements are compared for equality with the [equals][Any.equals] function.
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect infix fun ShortArray?.contentEquals(other: ShortArray?): Boolean
|
||||
|
||||
/**
|
||||
* Returns `true` if the two specified arrays are *structurally* equal to one another,
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*
|
||||
* The elements are compared for equality with the [equals][Any.equals] function.
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect infix fun IntArray?.contentEquals(other: IntArray?): Boolean
|
||||
|
||||
/**
|
||||
* Returns `true` if the two specified arrays are *structurally* equal to one another,
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*
|
||||
* The elements are compared for equality with the [equals][Any.equals] function.
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect infix fun LongArray?.contentEquals(other: LongArray?): Boolean
|
||||
|
||||
/**
|
||||
* Returns `true` if the two specified arrays are *structurally* equal to one another,
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*
|
||||
* The elements are compared for equality with the [equals][Any.equals] function.
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect infix fun FloatArray?.contentEquals(other: FloatArray?): Boolean
|
||||
|
||||
/**
|
||||
* Returns `true` if the two specified arrays are *structurally* equal to one another,
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*
|
||||
* The elements are compared for equality with the [equals][Any.equals] function.
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect infix fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean
|
||||
|
||||
/**
|
||||
* Returns `true` if the two specified arrays are *structurally* equal to one another,
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*
|
||||
* The elements are compared for equality with the [equals][Any.equals] function.
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect infix fun BooleanArray?.contentEquals(other: BooleanArray?): Boolean
|
||||
|
||||
/**
|
||||
* Returns `true` if the two specified arrays are *structurally* equal to one another,
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*
|
||||
* The elements are compared for equality with the [equals][Any.equals] function.
|
||||
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect infix fun CharArray?.contentEquals(other: CharArray?): Boolean
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun <T> Array<out T>.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun ByteArray.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun ShortArray.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun IntArray.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun LongArray.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun FloatArray.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun DoubleArray.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun BooleanArray.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun CharArray.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun <T> Array<out T>?.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun ByteArray?.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun ShortArray?.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun IntArray?.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun LongArray?.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun FloatArray?.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun DoubleArray?.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun BooleanArray?.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun CharArray?.contentHashCode(): Int
|
||||
|
||||
/**
|
||||
* Returns a string representation of the contents of the specified array as if it is [List].
|
||||
*
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun <T> Array<out T>.contentToString(): String
|
||||
|
||||
/**
|
||||
@@ -6196,6 +6398,7 @@ public expect fun <T> Array<out T>.contentToString(): String
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun ByteArray.contentToString(): String
|
||||
|
||||
/**
|
||||
@@ -6204,6 +6407,7 @@ public expect fun ByteArray.contentToString(): String
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun ShortArray.contentToString(): String
|
||||
|
||||
/**
|
||||
@@ -6212,6 +6416,7 @@ public expect fun ShortArray.contentToString(): String
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun IntArray.contentToString(): String
|
||||
|
||||
/**
|
||||
@@ -6220,6 +6425,7 @@ public expect fun IntArray.contentToString(): String
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun LongArray.contentToString(): String
|
||||
|
||||
/**
|
||||
@@ -6228,6 +6434,7 @@ public expect fun LongArray.contentToString(): String
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun FloatArray.contentToString(): String
|
||||
|
||||
/**
|
||||
@@ -6236,6 +6443,7 @@ public expect fun FloatArray.contentToString(): String
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun DoubleArray.contentToString(): String
|
||||
|
||||
/**
|
||||
@@ -6244,6 +6452,7 @@ public expect fun DoubleArray.contentToString(): String
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun BooleanArray.contentToString(): String
|
||||
|
||||
/**
|
||||
@@ -6252,8 +6461,81 @@ public expect fun BooleanArray.contentToString(): String
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
public expect fun CharArray.contentToString(): String
|
||||
|
||||
/**
|
||||
* Returns a string representation of the contents of the specified array as if it is [List].
|
||||
*
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun <T> Array<out T>?.contentToString(): String
|
||||
|
||||
/**
|
||||
* Returns a string representation of the contents of the specified array as if it is [List].
|
||||
*
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun ByteArray?.contentToString(): String
|
||||
|
||||
/**
|
||||
* Returns a string representation of the contents of the specified array as if it is [List].
|
||||
*
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun ShortArray?.contentToString(): String
|
||||
|
||||
/**
|
||||
* Returns a string representation of the contents of the specified array as if it is [List].
|
||||
*
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun IntArray?.contentToString(): String
|
||||
|
||||
/**
|
||||
* Returns a string representation of the contents of the specified array as if it is [List].
|
||||
*
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun LongArray?.contentToString(): String
|
||||
|
||||
/**
|
||||
* Returns a string representation of the contents of the specified array as if it is [List].
|
||||
*
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun FloatArray?.contentToString(): String
|
||||
|
||||
/**
|
||||
* Returns a string representation of the contents of the specified array as if it is [List].
|
||||
*
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun DoubleArray?.contentToString(): String
|
||||
|
||||
/**
|
||||
* Returns a string representation of the contents of the specified array as if it is [List].
|
||||
*
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun BooleanArray?.contentToString(): String
|
||||
|
||||
/**
|
||||
* Returns a string representation of the contents of the specified array as if it is [List].
|
||||
*
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
public expect fun CharArray?.contentToString(): String
|
||||
|
||||
/**
|
||||
* Copies this array or its subrange into the [destination] array and returns that array.
|
||||
*
|
||||
|
||||
@@ -3015,9 +3015,10 @@ public inline fun ShortArray.asUShortArray(): UShortArray {
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*/
|
||||
@SinceKotlin("1.3")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
@ExperimentalUnsignedTypes
|
||||
public infix fun UIntArray.contentEquals(other: UIntArray): Boolean {
|
||||
return storage.contentEquals(other.storage)
|
||||
return this.contentEquals(other)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3025,9 +3026,10 @@ public infix fun UIntArray.contentEquals(other: UIntArray): Boolean {
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*/
|
||||
@SinceKotlin("1.3")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
@ExperimentalUnsignedTypes
|
||||
public infix fun ULongArray.contentEquals(other: ULongArray): Boolean {
|
||||
return storage.contentEquals(other.storage)
|
||||
return this.contentEquals(other)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3035,9 +3037,10 @@ public infix fun ULongArray.contentEquals(other: ULongArray): Boolean {
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*/
|
||||
@SinceKotlin("1.3")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
@ExperimentalUnsignedTypes
|
||||
public infix fun UByteArray.contentEquals(other: UByteArray): Boolean {
|
||||
return storage.contentEquals(other.storage)
|
||||
return this.contentEquals(other)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3045,45 +3048,126 @@ public infix fun UByteArray.contentEquals(other: UByteArray): Boolean {
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*/
|
||||
@SinceKotlin("1.3")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
@ExperimentalUnsignedTypes
|
||||
public infix fun UShortArray.contentEquals(other: UShortArray): Boolean {
|
||||
return storage.contentEquals(other.storage)
|
||||
return this.contentEquals(other)
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns `true` if the two specified arrays are *structurally* equal to one another,
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
public infix fun UIntArray?.contentEquals(other: UIntArray?): Boolean {
|
||||
return this?.storage.contentEquals(other?.storage)
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns `true` if the two specified arrays are *structurally* equal to one another,
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
public infix fun ULongArray?.contentEquals(other: ULongArray?): Boolean {
|
||||
return this?.storage.contentEquals(other?.storage)
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns `true` if the two specified arrays are *structurally* equal to one another,
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
public infix fun UByteArray?.contentEquals(other: UByteArray?): Boolean {
|
||||
return this?.storage.contentEquals(other?.storage)
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns `true` if the two specified arrays are *structurally* equal to one another,
|
||||
* i.e. contain the same number of the same elements in the same order.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
public infix fun UShortArray?.contentEquals(other: UShortArray?): Boolean {
|
||||
return this?.storage.contentEquals(other?.storage)
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.3")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
@ExperimentalUnsignedTypes
|
||||
public fun UIntArray.contentHashCode(): Int {
|
||||
return storage.contentHashCode()
|
||||
return this.contentHashCode()
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.3")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
@ExperimentalUnsignedTypes
|
||||
public fun ULongArray.contentHashCode(): Int {
|
||||
return storage.contentHashCode()
|
||||
return this.contentHashCode()
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.3")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
@ExperimentalUnsignedTypes
|
||||
public fun UByteArray.contentHashCode(): Int {
|
||||
return storage.contentHashCode()
|
||||
return this.contentHashCode()
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.3")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
@ExperimentalUnsignedTypes
|
||||
public fun UShortArray.contentHashCode(): Int {
|
||||
return storage.contentHashCode()
|
||||
return this.contentHashCode()
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
public fun UIntArray?.contentHashCode(): Int {
|
||||
return this?.storage.contentHashCode()
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
public fun ULongArray?.contentHashCode(): Int {
|
||||
return this?.storage.contentHashCode()
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
public fun UByteArray?.contentHashCode(): Int {
|
||||
return this?.storage.contentHashCode()
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a hash code based on the contents of this array as if it is [List].
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
public fun UShortArray?.contentHashCode(): Int {
|
||||
return this?.storage.contentHashCode()
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3092,9 +3176,10 @@ public fun UShortArray.contentHashCode(): Int {
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.3")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
@ExperimentalUnsignedTypes
|
||||
public fun UIntArray.contentToString(): String {
|
||||
return joinToString(", ", "[", "]")
|
||||
return this.contentToString()
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3103,9 +3188,10 @@ public fun UIntArray.contentToString(): String {
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.3")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
@ExperimentalUnsignedTypes
|
||||
public fun ULongArray.contentToString(): String {
|
||||
return joinToString(", ", "[", "]")
|
||||
return this.contentToString()
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3114,9 +3200,10 @@ public fun ULongArray.contentToString(): String {
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.3")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
@ExperimentalUnsignedTypes
|
||||
public fun UByteArray.contentToString(): String {
|
||||
return joinToString(", ", "[", "]")
|
||||
return this.contentToString()
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3125,9 +3212,54 @@ public fun UByteArray.contentToString(): String {
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.3")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
@ExperimentalUnsignedTypes
|
||||
public fun UShortArray.contentToString(): String {
|
||||
return joinToString(", ", "[", "]")
|
||||
return this.contentToString()
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a string representation of the contents of the specified array as if it is [List].
|
||||
*
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
public fun UIntArray?.contentToString(): String {
|
||||
return this?.joinToString(", ", "[", "]") ?: "null"
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a string representation of the contents of the specified array as if it is [List].
|
||||
*
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
public fun ULongArray?.contentToString(): String {
|
||||
return this?.joinToString(", ", "[", "]") ?: "null"
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a string representation of the contents of the specified array as if it is [List].
|
||||
*
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
public fun UByteArray?.contentToString(): String {
|
||||
return this?.joinToString(", ", "[", "]") ?: "null"
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a string representation of the contents of the specified array as if it is [List].
|
||||
*
|
||||
* @sample samples.collections.Arrays.ContentOperations.contentToString
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@ExperimentalUnsignedTypes
|
||||
public fun UShortArray?.contentToString(): String {
|
||||
return this?.joinToString(", ", "[", "]") ?: "null"
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user