Refer to java.util.Arrays fully-qualified in generated code
This commit is contained in:
@@ -5158,7 +5158,7 @@ public fun CharArray.sortedWith(comparator: Comparator<in Char>): List<Char> {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline infix fun <T> Array<out T>.contentDeepEquals(other: Array<out T>): Boolean {
|
||||
return Arrays.deepEquals(this, other)
|
||||
return java.util.Arrays.deepEquals(this, other)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5171,7 +5171,7 @@ public inline infix fun <T> Array<out T>.contentDeepEquals(other: Array<out T>):
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <T> Array<out T>.contentDeepHashCode(): Int {
|
||||
return Arrays.deepHashCode(this)
|
||||
return java.util.Arrays.deepHashCode(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5185,7 +5185,7 @@ public inline fun <T> Array<out T>.contentDeepHashCode(): Int {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <T> Array<out T>.contentDeepToString(): String {
|
||||
return Arrays.deepToString(this)
|
||||
return java.util.Arrays.deepToString(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5196,7 +5196,7 @@ public inline fun <T> Array<out T>.contentDeepToString(): String {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline infix fun <T> Array<out T>.contentEquals(other: Array<out T>): Boolean {
|
||||
return Arrays.equals(this, other)
|
||||
return java.util.Arrays.equals(this, other)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5207,7 +5207,7 @@ public inline infix fun <T> Array<out T>.contentEquals(other: Array<out T>): Boo
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline infix fun ByteArray.contentEquals(other: ByteArray): Boolean {
|
||||
return Arrays.equals(this, other)
|
||||
return java.util.Arrays.equals(this, other)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5218,7 +5218,7 @@ public inline infix fun ByteArray.contentEquals(other: ByteArray): Boolean {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline infix fun ShortArray.contentEquals(other: ShortArray): Boolean {
|
||||
return Arrays.equals(this, other)
|
||||
return java.util.Arrays.equals(this, other)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5229,7 +5229,7 @@ public inline infix fun ShortArray.contentEquals(other: ShortArray): Boolean {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline infix fun IntArray.contentEquals(other: IntArray): Boolean {
|
||||
return Arrays.equals(this, other)
|
||||
return java.util.Arrays.equals(this, other)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5240,7 +5240,7 @@ public inline infix fun IntArray.contentEquals(other: IntArray): Boolean {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline infix fun LongArray.contentEquals(other: LongArray): Boolean {
|
||||
return Arrays.equals(this, other)
|
||||
return java.util.Arrays.equals(this, other)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5251,7 +5251,7 @@ public inline infix fun LongArray.contentEquals(other: LongArray): Boolean {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline infix fun FloatArray.contentEquals(other: FloatArray): Boolean {
|
||||
return Arrays.equals(this, other)
|
||||
return java.util.Arrays.equals(this, other)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5262,7 +5262,7 @@ public inline infix fun FloatArray.contentEquals(other: FloatArray): Boolean {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean {
|
||||
return Arrays.equals(this, other)
|
||||
return java.util.Arrays.equals(this, other)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5273,7 +5273,7 @@ public inline infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean {
|
||||
return Arrays.equals(this, other)
|
||||
return java.util.Arrays.equals(this, other)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5284,7 +5284,7 @@ public inline infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline infix fun CharArray.contentEquals(other: CharArray): Boolean {
|
||||
return Arrays.equals(this, other)
|
||||
return java.util.Arrays.equals(this, other)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5294,7 +5294,7 @@ public inline infix fun CharArray.contentEquals(other: CharArray): Boolean {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <T> Array<out T>.contentHashCode(): Int {
|
||||
return Arrays.hashCode(this)
|
||||
return java.util.Arrays.hashCode(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5304,7 +5304,7 @@ public inline fun <T> Array<out T>.contentHashCode(): Int {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun ByteArray.contentHashCode(): Int {
|
||||
return Arrays.hashCode(this)
|
||||
return java.util.Arrays.hashCode(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5314,7 +5314,7 @@ public inline fun ByteArray.contentHashCode(): Int {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun ShortArray.contentHashCode(): Int {
|
||||
return Arrays.hashCode(this)
|
||||
return java.util.Arrays.hashCode(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5324,7 +5324,7 @@ public inline fun ShortArray.contentHashCode(): Int {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun IntArray.contentHashCode(): Int {
|
||||
return Arrays.hashCode(this)
|
||||
return java.util.Arrays.hashCode(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5334,7 +5334,7 @@ public inline fun IntArray.contentHashCode(): Int {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun LongArray.contentHashCode(): Int {
|
||||
return Arrays.hashCode(this)
|
||||
return java.util.Arrays.hashCode(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5344,7 +5344,7 @@ public inline fun LongArray.contentHashCode(): Int {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun FloatArray.contentHashCode(): Int {
|
||||
return Arrays.hashCode(this)
|
||||
return java.util.Arrays.hashCode(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5354,7 +5354,7 @@ public inline fun FloatArray.contentHashCode(): Int {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun DoubleArray.contentHashCode(): Int {
|
||||
return Arrays.hashCode(this)
|
||||
return java.util.Arrays.hashCode(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5364,7 +5364,7 @@ public inline fun DoubleArray.contentHashCode(): Int {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun BooleanArray.contentHashCode(): Int {
|
||||
return Arrays.hashCode(this)
|
||||
return java.util.Arrays.hashCode(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5374,7 +5374,7 @@ public inline fun BooleanArray.contentHashCode(): Int {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun CharArray.contentHashCode(): Int {
|
||||
return Arrays.hashCode(this)
|
||||
return java.util.Arrays.hashCode(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5384,7 +5384,7 @@ public inline fun CharArray.contentHashCode(): Int {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <T> Array<out T>.contentToString(): String {
|
||||
return Arrays.toString(this)
|
||||
return java.util.Arrays.toString(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5394,7 +5394,7 @@ public inline fun <T> Array<out T>.contentToString(): String {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun ByteArray.contentToString(): String {
|
||||
return Arrays.toString(this)
|
||||
return java.util.Arrays.toString(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5404,7 +5404,7 @@ public inline fun ByteArray.contentToString(): String {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun ShortArray.contentToString(): String {
|
||||
return Arrays.toString(this)
|
||||
return java.util.Arrays.toString(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5414,7 +5414,7 @@ public inline fun ShortArray.contentToString(): String {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun IntArray.contentToString(): String {
|
||||
return Arrays.toString(this)
|
||||
return java.util.Arrays.toString(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5424,7 +5424,7 @@ public inline fun IntArray.contentToString(): String {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun LongArray.contentToString(): String {
|
||||
return Arrays.toString(this)
|
||||
return java.util.Arrays.toString(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5434,7 +5434,7 @@ public inline fun LongArray.contentToString(): String {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun FloatArray.contentToString(): String {
|
||||
return Arrays.toString(this)
|
||||
return java.util.Arrays.toString(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5444,7 +5444,7 @@ public inline fun FloatArray.contentToString(): String {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun DoubleArray.contentToString(): String {
|
||||
return Arrays.toString(this)
|
||||
return java.util.Arrays.toString(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5454,7 +5454,7 @@ public inline fun DoubleArray.contentToString(): String {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun BooleanArray.contentToString(): String {
|
||||
return Arrays.toString(this)
|
||||
return java.util.Arrays.toString(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5464,7 +5464,7 @@ public inline fun BooleanArray.contentToString(): String {
|
||||
@SinceKotlin("1.1")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun CharArray.contentToString(): String {
|
||||
return Arrays.toString(this)
|
||||
return java.util.Arrays.toString(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12776,7 +12776,7 @@ public fun CharArray.asList(): List<Char> {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun <T> Array<out T>.binarySearch(element: T, comparator: Comparator<in T>, fromIndex: Int = 0, toIndex: Int = size): Int {
|
||||
return Arrays.binarySearch(this, fromIndex, toIndex, element, comparator)
|
||||
return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element, comparator)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12792,7 +12792,7 @@ public fun <T> Array<out T>.binarySearch(element: T, comparator: Comparator<in T
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun <T> Array<out T>.binarySearch(element: T, fromIndex: Int = 0, toIndex: Int = size): Int {
|
||||
return Arrays.binarySearch(this, fromIndex, toIndex, element)
|
||||
return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12808,7 +12808,7 @@ public fun <T> Array<out T>.binarySearch(element: T, fromIndex: Int = 0, toIndex
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun ByteArray.binarySearch(element: Byte, fromIndex: Int = 0, toIndex: Int = size): Int {
|
||||
return Arrays.binarySearch(this, fromIndex, toIndex, element)
|
||||
return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12824,7 +12824,7 @@ public fun ByteArray.binarySearch(element: Byte, fromIndex: Int = 0, toIndex: In
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun ShortArray.binarySearch(element: Short, fromIndex: Int = 0, toIndex: Int = size): Int {
|
||||
return Arrays.binarySearch(this, fromIndex, toIndex, element)
|
||||
return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12840,7 +12840,7 @@ public fun ShortArray.binarySearch(element: Short, fromIndex: Int = 0, toIndex:
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun IntArray.binarySearch(element: Int, fromIndex: Int = 0, toIndex: Int = size): Int {
|
||||
return Arrays.binarySearch(this, fromIndex, toIndex, element)
|
||||
return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12856,7 +12856,7 @@ public fun IntArray.binarySearch(element: Int, fromIndex: Int = 0, toIndex: Int
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun LongArray.binarySearch(element: Long, fromIndex: Int = 0, toIndex: Int = size): Int {
|
||||
return Arrays.binarySearch(this, fromIndex, toIndex, element)
|
||||
return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12872,7 +12872,7 @@ public fun LongArray.binarySearch(element: Long, fromIndex: Int = 0, toIndex: In
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun FloatArray.binarySearch(element: Float, fromIndex: Int = 0, toIndex: Int = size): Int {
|
||||
return Arrays.binarySearch(this, fromIndex, toIndex, element)
|
||||
return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12888,7 +12888,7 @@ public fun FloatArray.binarySearch(element: Float, fromIndex: Int = 0, toIndex:
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun DoubleArray.binarySearch(element: Double, fromIndex: Int = 0, toIndex: Int = size): Int {
|
||||
return Arrays.binarySearch(this, fromIndex, toIndex, element)
|
||||
return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12904,7 +12904,7 @@ public fun DoubleArray.binarySearch(element: Double, fromIndex: Int = 0, toIndex
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun CharArray.binarySearch(element: Char, fromIndex: Int = 0, toIndex: Int = size): Int {
|
||||
return Arrays.binarySearch(this, fromIndex, toIndex, element)
|
||||
return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12913,7 +12913,7 @@ public fun CharArray.binarySearch(element: Char, fromIndex: Int = 0, toIndex: In
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <T> Array<T>.copyOf(): Array<T> {
|
||||
return Arrays.copyOf(this, size)
|
||||
return java.util.Arrays.copyOf(this, size)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12922,7 +12922,7 @@ public inline fun <T> Array<T>.copyOf(): Array<T> {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun ByteArray.copyOf(): ByteArray {
|
||||
return Arrays.copyOf(this, size)
|
||||
return java.util.Arrays.copyOf(this, size)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12931,7 +12931,7 @@ public inline fun ByteArray.copyOf(): ByteArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun ShortArray.copyOf(): ShortArray {
|
||||
return Arrays.copyOf(this, size)
|
||||
return java.util.Arrays.copyOf(this, size)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12940,7 +12940,7 @@ public inline fun ShortArray.copyOf(): ShortArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun IntArray.copyOf(): IntArray {
|
||||
return Arrays.copyOf(this, size)
|
||||
return java.util.Arrays.copyOf(this, size)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12949,7 +12949,7 @@ public inline fun IntArray.copyOf(): IntArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun LongArray.copyOf(): LongArray {
|
||||
return Arrays.copyOf(this, size)
|
||||
return java.util.Arrays.copyOf(this, size)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12958,7 +12958,7 @@ public inline fun LongArray.copyOf(): LongArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun FloatArray.copyOf(): FloatArray {
|
||||
return Arrays.copyOf(this, size)
|
||||
return java.util.Arrays.copyOf(this, size)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12967,7 +12967,7 @@ public inline fun FloatArray.copyOf(): FloatArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun DoubleArray.copyOf(): DoubleArray {
|
||||
return Arrays.copyOf(this, size)
|
||||
return java.util.Arrays.copyOf(this, size)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12976,7 +12976,7 @@ public inline fun DoubleArray.copyOf(): DoubleArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun BooleanArray.copyOf(): BooleanArray {
|
||||
return Arrays.copyOf(this, size)
|
||||
return java.util.Arrays.copyOf(this, size)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12985,7 +12985,7 @@ public inline fun BooleanArray.copyOf(): BooleanArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun CharArray.copyOf(): CharArray {
|
||||
return Arrays.copyOf(this, size)
|
||||
return java.util.Arrays.copyOf(this, size)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12994,7 +12994,7 @@ public inline fun CharArray.copyOf(): CharArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <T> Array<T>.copyOf(newSize: Int): Array<T?> {
|
||||
return Arrays.copyOf(this, newSize)
|
||||
return java.util.Arrays.copyOf(this, newSize)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13003,7 +13003,7 @@ public inline fun <T> Array<T>.copyOf(newSize: Int): Array<T?> {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun ByteArray.copyOf(newSize: Int): ByteArray {
|
||||
return Arrays.copyOf(this, newSize)
|
||||
return java.util.Arrays.copyOf(this, newSize)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13012,7 +13012,7 @@ public inline fun ByteArray.copyOf(newSize: Int): ByteArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun ShortArray.copyOf(newSize: Int): ShortArray {
|
||||
return Arrays.copyOf(this, newSize)
|
||||
return java.util.Arrays.copyOf(this, newSize)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13021,7 +13021,7 @@ public inline fun ShortArray.copyOf(newSize: Int): ShortArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun IntArray.copyOf(newSize: Int): IntArray {
|
||||
return Arrays.copyOf(this, newSize)
|
||||
return java.util.Arrays.copyOf(this, newSize)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13030,7 +13030,7 @@ public inline fun IntArray.copyOf(newSize: Int): IntArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun LongArray.copyOf(newSize: Int): LongArray {
|
||||
return Arrays.copyOf(this, newSize)
|
||||
return java.util.Arrays.copyOf(this, newSize)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13039,7 +13039,7 @@ public inline fun LongArray.copyOf(newSize: Int): LongArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun FloatArray.copyOf(newSize: Int): FloatArray {
|
||||
return Arrays.copyOf(this, newSize)
|
||||
return java.util.Arrays.copyOf(this, newSize)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13048,7 +13048,7 @@ public inline fun FloatArray.copyOf(newSize: Int): FloatArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun DoubleArray.copyOf(newSize: Int): DoubleArray {
|
||||
return Arrays.copyOf(this, newSize)
|
||||
return java.util.Arrays.copyOf(this, newSize)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13057,7 +13057,7 @@ public inline fun DoubleArray.copyOf(newSize: Int): DoubleArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun BooleanArray.copyOf(newSize: Int): BooleanArray {
|
||||
return Arrays.copyOf(this, newSize)
|
||||
return java.util.Arrays.copyOf(this, newSize)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13066,7 +13066,7 @@ public inline fun BooleanArray.copyOf(newSize: Int): BooleanArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun CharArray.copyOf(newSize: Int): CharArray {
|
||||
return Arrays.copyOf(this, newSize)
|
||||
return java.util.Arrays.copyOf(this, newSize)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13075,7 +13075,7 @@ public inline fun CharArray.copyOf(newSize: Int): CharArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun <T> Array<T>.copyOfRange(fromIndex: Int, toIndex: Int): Array<T> {
|
||||
return Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
return java.util.Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13084,7 +13084,7 @@ public inline fun <T> Array<T>.copyOfRange(fromIndex: Int, toIndex: Int): Array<
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun ByteArray.copyOfRange(fromIndex: Int, toIndex: Int): ByteArray {
|
||||
return Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
return java.util.Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13093,7 +13093,7 @@ public inline fun ByteArray.copyOfRange(fromIndex: Int, toIndex: Int): ByteArray
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun ShortArray.copyOfRange(fromIndex: Int, toIndex: Int): ShortArray {
|
||||
return Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
return java.util.Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13102,7 +13102,7 @@ public inline fun ShortArray.copyOfRange(fromIndex: Int, toIndex: Int): ShortArr
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun IntArray.copyOfRange(fromIndex: Int, toIndex: Int): IntArray {
|
||||
return Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
return java.util.Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13111,7 +13111,7 @@ public inline fun IntArray.copyOfRange(fromIndex: Int, toIndex: Int): IntArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun LongArray.copyOfRange(fromIndex: Int, toIndex: Int): LongArray {
|
||||
return Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
return java.util.Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13120,7 +13120,7 @@ public inline fun LongArray.copyOfRange(fromIndex: Int, toIndex: Int): LongArray
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun FloatArray.copyOfRange(fromIndex: Int, toIndex: Int): FloatArray {
|
||||
return Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
return java.util.Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13129,7 +13129,7 @@ public inline fun FloatArray.copyOfRange(fromIndex: Int, toIndex: Int): FloatArr
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun DoubleArray.copyOfRange(fromIndex: Int, toIndex: Int): DoubleArray {
|
||||
return Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
return java.util.Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13138,7 +13138,7 @@ public inline fun DoubleArray.copyOfRange(fromIndex: Int, toIndex: Int): DoubleA
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun BooleanArray.copyOfRange(fromIndex: Int, toIndex: Int): BooleanArray {
|
||||
return Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
return java.util.Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13147,7 +13147,7 @@ public inline fun BooleanArray.copyOfRange(fromIndex: Int, toIndex: Int): Boolea
|
||||
@kotlin.jvm.JvmVersion
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun CharArray.copyOfRange(fromIndex: Int, toIndex: Int): CharArray {
|
||||
return Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
return java.util.Arrays.copyOfRange(this, fromIndex, toIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13155,7 +13155,7 @@ public inline fun CharArray.copyOfRange(fromIndex: Int, toIndex: Int): CharArray
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun <T> Array<T>.fill(element: T, fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.fill(this, fromIndex, toIndex, element)
|
||||
java.util.Arrays.fill(this, fromIndex, toIndex, element)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13163,7 +13163,7 @@ public fun <T> Array<T>.fill(element: T, fromIndex: Int = 0, toIndex: Int = size
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun ByteArray.fill(element: Byte, fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.fill(this, fromIndex, toIndex, element)
|
||||
java.util.Arrays.fill(this, fromIndex, toIndex, element)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13171,7 +13171,7 @@ public fun ByteArray.fill(element: Byte, fromIndex: Int = 0, toIndex: Int = size
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun ShortArray.fill(element: Short, fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.fill(this, fromIndex, toIndex, element)
|
||||
java.util.Arrays.fill(this, fromIndex, toIndex, element)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13179,7 +13179,7 @@ public fun ShortArray.fill(element: Short, fromIndex: Int = 0, toIndex: Int = si
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun IntArray.fill(element: Int, fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.fill(this, fromIndex, toIndex, element)
|
||||
java.util.Arrays.fill(this, fromIndex, toIndex, element)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13187,7 +13187,7 @@ public fun IntArray.fill(element: Int, fromIndex: Int = 0, toIndex: Int = size):
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun LongArray.fill(element: Long, fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.fill(this, fromIndex, toIndex, element)
|
||||
java.util.Arrays.fill(this, fromIndex, toIndex, element)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13195,7 +13195,7 @@ public fun LongArray.fill(element: Long, fromIndex: Int = 0, toIndex: Int = size
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun FloatArray.fill(element: Float, fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.fill(this, fromIndex, toIndex, element)
|
||||
java.util.Arrays.fill(this, fromIndex, toIndex, element)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13203,7 +13203,7 @@ public fun FloatArray.fill(element: Float, fromIndex: Int = 0, toIndex: Int = si
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun DoubleArray.fill(element: Double, fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.fill(this, fromIndex, toIndex, element)
|
||||
java.util.Arrays.fill(this, fromIndex, toIndex, element)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13211,7 +13211,7 @@ public fun DoubleArray.fill(element: Double, fromIndex: Int = 0, toIndex: Int =
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun BooleanArray.fill(element: Boolean, fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.fill(this, fromIndex, toIndex, element)
|
||||
java.util.Arrays.fill(this, fromIndex, toIndex, element)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13219,7 +13219,7 @@ public fun BooleanArray.fill(element: Boolean, fromIndex: Int = 0, toIndex: Int
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun CharArray.fill(element: Char, fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.fill(this, fromIndex, toIndex, element)
|
||||
java.util.Arrays.fill(this, fromIndex, toIndex, element)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13246,7 +13246,7 @@ public fun <C : MutableCollection<in R>, R> Array<*>.filterIsInstanceTo(destinat
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun <T> Array<T>.plus(element: T): Array<T> {
|
||||
val index = size
|
||||
val result = Arrays.copyOf(this, index + 1)
|
||||
val result = java.util.Arrays.copyOf(this, index + 1)
|
||||
result[index] = element
|
||||
return result
|
||||
}
|
||||
@@ -13257,7 +13257,7 @@ public operator fun <T> Array<T>.plus(element: T): Array<T> {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun ByteArray.plus(element: Byte): ByteArray {
|
||||
val index = size
|
||||
val result = Arrays.copyOf(this, index + 1)
|
||||
val result = java.util.Arrays.copyOf(this, index + 1)
|
||||
result[index] = element
|
||||
return result
|
||||
}
|
||||
@@ -13268,7 +13268,7 @@ public operator fun ByteArray.plus(element: Byte): ByteArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun ShortArray.plus(element: Short): ShortArray {
|
||||
val index = size
|
||||
val result = Arrays.copyOf(this, index + 1)
|
||||
val result = java.util.Arrays.copyOf(this, index + 1)
|
||||
result[index] = element
|
||||
return result
|
||||
}
|
||||
@@ -13279,7 +13279,7 @@ public operator fun ShortArray.plus(element: Short): ShortArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun IntArray.plus(element: Int): IntArray {
|
||||
val index = size
|
||||
val result = Arrays.copyOf(this, index + 1)
|
||||
val result = java.util.Arrays.copyOf(this, index + 1)
|
||||
result[index] = element
|
||||
return result
|
||||
}
|
||||
@@ -13290,7 +13290,7 @@ public operator fun IntArray.plus(element: Int): IntArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun LongArray.plus(element: Long): LongArray {
|
||||
val index = size
|
||||
val result = Arrays.copyOf(this, index + 1)
|
||||
val result = java.util.Arrays.copyOf(this, index + 1)
|
||||
result[index] = element
|
||||
return result
|
||||
}
|
||||
@@ -13301,7 +13301,7 @@ public operator fun LongArray.plus(element: Long): LongArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun FloatArray.plus(element: Float): FloatArray {
|
||||
val index = size
|
||||
val result = Arrays.copyOf(this, index + 1)
|
||||
val result = java.util.Arrays.copyOf(this, index + 1)
|
||||
result[index] = element
|
||||
return result
|
||||
}
|
||||
@@ -13312,7 +13312,7 @@ public operator fun FloatArray.plus(element: Float): FloatArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun DoubleArray.plus(element: Double): DoubleArray {
|
||||
val index = size
|
||||
val result = Arrays.copyOf(this, index + 1)
|
||||
val result = java.util.Arrays.copyOf(this, index + 1)
|
||||
result[index] = element
|
||||
return result
|
||||
}
|
||||
@@ -13323,7 +13323,7 @@ public operator fun DoubleArray.plus(element: Double): DoubleArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun BooleanArray.plus(element: Boolean): BooleanArray {
|
||||
val index = size
|
||||
val result = Arrays.copyOf(this, index + 1)
|
||||
val result = java.util.Arrays.copyOf(this, index + 1)
|
||||
result[index] = element
|
||||
return result
|
||||
}
|
||||
@@ -13334,7 +13334,7 @@ public operator fun BooleanArray.plus(element: Boolean): BooleanArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun CharArray.plus(element: Char): CharArray {
|
||||
val index = size
|
||||
val result = Arrays.copyOf(this, index + 1)
|
||||
val result = java.util.Arrays.copyOf(this, index + 1)
|
||||
result[index] = element
|
||||
return result
|
||||
}
|
||||
@@ -13345,7 +13345,7 @@ public operator fun CharArray.plus(element: Char): CharArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun <T> Array<T>.plus(elements: Collection<T>): Array<T> {
|
||||
var index = size
|
||||
val result = Arrays.copyOf(this, index + elements.size)
|
||||
val result = java.util.Arrays.copyOf(this, index + elements.size)
|
||||
for (element in elements) result[index++] = element
|
||||
return result
|
||||
}
|
||||
@@ -13356,7 +13356,7 @@ public operator fun <T> Array<T>.plus(elements: Collection<T>): Array<T> {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun ByteArray.plus(elements: Collection<Byte>): ByteArray {
|
||||
var index = size
|
||||
val result = Arrays.copyOf(this, index + elements.size)
|
||||
val result = java.util.Arrays.copyOf(this, index + elements.size)
|
||||
for (element in elements) result[index++] = element
|
||||
return result
|
||||
}
|
||||
@@ -13367,7 +13367,7 @@ public operator fun ByteArray.plus(elements: Collection<Byte>): ByteArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun ShortArray.plus(elements: Collection<Short>): ShortArray {
|
||||
var index = size
|
||||
val result = Arrays.copyOf(this, index + elements.size)
|
||||
val result = java.util.Arrays.copyOf(this, index + elements.size)
|
||||
for (element in elements) result[index++] = element
|
||||
return result
|
||||
}
|
||||
@@ -13378,7 +13378,7 @@ public operator fun ShortArray.plus(elements: Collection<Short>): ShortArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun IntArray.plus(elements: Collection<Int>): IntArray {
|
||||
var index = size
|
||||
val result = Arrays.copyOf(this, index + elements.size)
|
||||
val result = java.util.Arrays.copyOf(this, index + elements.size)
|
||||
for (element in elements) result[index++] = element
|
||||
return result
|
||||
}
|
||||
@@ -13389,7 +13389,7 @@ public operator fun IntArray.plus(elements: Collection<Int>): IntArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun LongArray.plus(elements: Collection<Long>): LongArray {
|
||||
var index = size
|
||||
val result = Arrays.copyOf(this, index + elements.size)
|
||||
val result = java.util.Arrays.copyOf(this, index + elements.size)
|
||||
for (element in elements) result[index++] = element
|
||||
return result
|
||||
}
|
||||
@@ -13400,7 +13400,7 @@ public operator fun LongArray.plus(elements: Collection<Long>): LongArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun FloatArray.plus(elements: Collection<Float>): FloatArray {
|
||||
var index = size
|
||||
val result = Arrays.copyOf(this, index + elements.size)
|
||||
val result = java.util.Arrays.copyOf(this, index + elements.size)
|
||||
for (element in elements) result[index++] = element
|
||||
return result
|
||||
}
|
||||
@@ -13411,7 +13411,7 @@ public operator fun FloatArray.plus(elements: Collection<Float>): FloatArray {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun DoubleArray.plus(elements: Collection<Double>): DoubleArray {
|
||||
var index = size
|
||||
val result = Arrays.copyOf(this, index + elements.size)
|
||||
val result = java.util.Arrays.copyOf(this, index + elements.size)
|
||||
for (element in elements) result[index++] = element
|
||||
return result
|
||||
}
|
||||
@@ -13422,7 +13422,7 @@ public operator fun DoubleArray.plus(elements: Collection<Double>): DoubleArray
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun BooleanArray.plus(elements: Collection<Boolean>): BooleanArray {
|
||||
var index = size
|
||||
val result = Arrays.copyOf(this, index + elements.size)
|
||||
val result = java.util.Arrays.copyOf(this, index + elements.size)
|
||||
for (element in elements) result[index++] = element
|
||||
return result
|
||||
}
|
||||
@@ -13433,7 +13433,7 @@ public operator fun BooleanArray.plus(elements: Collection<Boolean>): BooleanArr
|
||||
@kotlin.jvm.JvmVersion
|
||||
public operator fun CharArray.plus(elements: Collection<Char>): CharArray {
|
||||
var index = size
|
||||
val result = Arrays.copyOf(this, index + elements.size)
|
||||
val result = java.util.Arrays.copyOf(this, index + elements.size)
|
||||
for (element in elements) result[index++] = element
|
||||
return result
|
||||
}
|
||||
@@ -13445,7 +13445,7 @@ public operator fun CharArray.plus(elements: Collection<Char>): CharArray {
|
||||
public operator fun <T> Array<T>.plus(elements: Array<out T>): Array<T> {
|
||||
val thisSize = size
|
||||
val arraySize = elements.size
|
||||
val result = Arrays.copyOf(this, thisSize + arraySize)
|
||||
val result = java.util.Arrays.copyOf(this, thisSize + arraySize)
|
||||
System.arraycopy(elements, 0, result, thisSize, arraySize)
|
||||
return result
|
||||
}
|
||||
@@ -13457,7 +13457,7 @@ public operator fun <T> Array<T>.plus(elements: Array<out T>): Array<T> {
|
||||
public operator fun ByteArray.plus(elements: ByteArray): ByteArray {
|
||||
val thisSize = size
|
||||
val arraySize = elements.size
|
||||
val result = Arrays.copyOf(this, thisSize + arraySize)
|
||||
val result = java.util.Arrays.copyOf(this, thisSize + arraySize)
|
||||
System.arraycopy(elements, 0, result, thisSize, arraySize)
|
||||
return result
|
||||
}
|
||||
@@ -13469,7 +13469,7 @@ public operator fun ByteArray.plus(elements: ByteArray): ByteArray {
|
||||
public operator fun ShortArray.plus(elements: ShortArray): ShortArray {
|
||||
val thisSize = size
|
||||
val arraySize = elements.size
|
||||
val result = Arrays.copyOf(this, thisSize + arraySize)
|
||||
val result = java.util.Arrays.copyOf(this, thisSize + arraySize)
|
||||
System.arraycopy(elements, 0, result, thisSize, arraySize)
|
||||
return result
|
||||
}
|
||||
@@ -13481,7 +13481,7 @@ public operator fun ShortArray.plus(elements: ShortArray): ShortArray {
|
||||
public operator fun IntArray.plus(elements: IntArray): IntArray {
|
||||
val thisSize = size
|
||||
val arraySize = elements.size
|
||||
val result = Arrays.copyOf(this, thisSize + arraySize)
|
||||
val result = java.util.Arrays.copyOf(this, thisSize + arraySize)
|
||||
System.arraycopy(elements, 0, result, thisSize, arraySize)
|
||||
return result
|
||||
}
|
||||
@@ -13493,7 +13493,7 @@ public operator fun IntArray.plus(elements: IntArray): IntArray {
|
||||
public operator fun LongArray.plus(elements: LongArray): LongArray {
|
||||
val thisSize = size
|
||||
val arraySize = elements.size
|
||||
val result = Arrays.copyOf(this, thisSize + arraySize)
|
||||
val result = java.util.Arrays.copyOf(this, thisSize + arraySize)
|
||||
System.arraycopy(elements, 0, result, thisSize, arraySize)
|
||||
return result
|
||||
}
|
||||
@@ -13505,7 +13505,7 @@ public operator fun LongArray.plus(elements: LongArray): LongArray {
|
||||
public operator fun FloatArray.plus(elements: FloatArray): FloatArray {
|
||||
val thisSize = size
|
||||
val arraySize = elements.size
|
||||
val result = Arrays.copyOf(this, thisSize + arraySize)
|
||||
val result = java.util.Arrays.copyOf(this, thisSize + arraySize)
|
||||
System.arraycopy(elements, 0, result, thisSize, arraySize)
|
||||
return result
|
||||
}
|
||||
@@ -13517,7 +13517,7 @@ public operator fun FloatArray.plus(elements: FloatArray): FloatArray {
|
||||
public operator fun DoubleArray.plus(elements: DoubleArray): DoubleArray {
|
||||
val thisSize = size
|
||||
val arraySize = elements.size
|
||||
val result = Arrays.copyOf(this, thisSize + arraySize)
|
||||
val result = java.util.Arrays.copyOf(this, thisSize + arraySize)
|
||||
System.arraycopy(elements, 0, result, thisSize, arraySize)
|
||||
return result
|
||||
}
|
||||
@@ -13529,7 +13529,7 @@ public operator fun DoubleArray.plus(elements: DoubleArray): DoubleArray {
|
||||
public operator fun BooleanArray.plus(elements: BooleanArray): BooleanArray {
|
||||
val thisSize = size
|
||||
val arraySize = elements.size
|
||||
val result = Arrays.copyOf(this, thisSize + arraySize)
|
||||
val result = java.util.Arrays.copyOf(this, thisSize + arraySize)
|
||||
System.arraycopy(elements, 0, result, thisSize, arraySize)
|
||||
return result
|
||||
}
|
||||
@@ -13541,7 +13541,7 @@ public operator fun BooleanArray.plus(elements: BooleanArray): BooleanArray {
|
||||
public operator fun CharArray.plus(elements: CharArray): CharArray {
|
||||
val thisSize = size
|
||||
val arraySize = elements.size
|
||||
val result = Arrays.copyOf(this, thisSize + arraySize)
|
||||
val result = java.util.Arrays.copyOf(this, thisSize + arraySize)
|
||||
System.arraycopy(elements, 0, result, thisSize, arraySize)
|
||||
return result
|
||||
}
|
||||
@@ -13560,7 +13560,7 @@ public inline fun <T> Array<T>.plusElement(element: T): Array<T> {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun <T> Array<out T>.sort(): Unit {
|
||||
if (size > 1) Arrays.sort(this)
|
||||
if (size > 1) java.util.Arrays.sort(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13568,7 +13568,7 @@ public fun <T> Array<out T>.sort(): Unit {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun ByteArray.sort(): Unit {
|
||||
if (size > 1) Arrays.sort(this)
|
||||
if (size > 1) java.util.Arrays.sort(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13576,7 +13576,7 @@ public fun ByteArray.sort(): Unit {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun ShortArray.sort(): Unit {
|
||||
if (size > 1) Arrays.sort(this)
|
||||
if (size > 1) java.util.Arrays.sort(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13584,7 +13584,7 @@ public fun ShortArray.sort(): Unit {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun IntArray.sort(): Unit {
|
||||
if (size > 1) Arrays.sort(this)
|
||||
if (size > 1) java.util.Arrays.sort(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13592,7 +13592,7 @@ public fun IntArray.sort(): Unit {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun LongArray.sort(): Unit {
|
||||
if (size > 1) Arrays.sort(this)
|
||||
if (size > 1) java.util.Arrays.sort(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13600,7 +13600,7 @@ public fun LongArray.sort(): Unit {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun FloatArray.sort(): Unit {
|
||||
if (size > 1) Arrays.sort(this)
|
||||
if (size > 1) java.util.Arrays.sort(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13608,7 +13608,7 @@ public fun FloatArray.sort(): Unit {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun DoubleArray.sort(): Unit {
|
||||
if (size > 1) Arrays.sort(this)
|
||||
if (size > 1) java.util.Arrays.sort(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13616,7 +13616,7 @@ public fun DoubleArray.sort(): Unit {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun CharArray.sort(): Unit {
|
||||
if (size > 1) Arrays.sort(this)
|
||||
if (size > 1) java.util.Arrays.sort(this)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13624,7 +13624,7 @@ public fun CharArray.sort(): Unit {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun <T> Array<out T>.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.sort(this, fromIndex, toIndex)
|
||||
java.util.Arrays.sort(this, fromIndex, toIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13632,7 +13632,7 @@ public fun <T> Array<out T>.sort(fromIndex: Int = 0, toIndex: Int = size): Unit
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun ByteArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.sort(this, fromIndex, toIndex)
|
||||
java.util.Arrays.sort(this, fromIndex, toIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13640,7 +13640,7 @@ public fun ByteArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun ShortArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.sort(this, fromIndex, toIndex)
|
||||
java.util.Arrays.sort(this, fromIndex, toIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13648,7 +13648,7 @@ public fun ShortArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun IntArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.sort(this, fromIndex, toIndex)
|
||||
java.util.Arrays.sort(this, fromIndex, toIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13656,7 +13656,7 @@ public fun IntArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun LongArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.sort(this, fromIndex, toIndex)
|
||||
java.util.Arrays.sort(this, fromIndex, toIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13664,7 +13664,7 @@ public fun LongArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun FloatArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.sort(this, fromIndex, toIndex)
|
||||
java.util.Arrays.sort(this, fromIndex, toIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13672,7 +13672,7 @@ public fun FloatArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun DoubleArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.sort(this, fromIndex, toIndex)
|
||||
java.util.Arrays.sort(this, fromIndex, toIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13680,7 +13680,7 @@ public fun DoubleArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun CharArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.sort(this, fromIndex, toIndex)
|
||||
java.util.Arrays.sort(this, fromIndex, toIndex)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13688,7 +13688,7 @@ public fun CharArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun <T> Array<out T>.sortWith(comparator: Comparator<in T>): Unit {
|
||||
if (size > 1) Arrays.sort(this, comparator)
|
||||
if (size > 1) java.util.Arrays.sort(this, comparator)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -13696,7 +13696,7 @@ public fun <T> Array<out T>.sortWith(comparator: Comparator<in T>): Unit {
|
||||
*/
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun <T> Array<out T>.sortWith(comparator: Comparator<in T>, fromIndex: Int = 0, toIndex: Int = size): Unit {
|
||||
Arrays.sort(this, fromIndex, toIndex, comparator)
|
||||
java.util.Arrays.sort(this, fromIndex, toIndex, comparator)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -57,7 +57,7 @@ fun arrays(): List<GenericFunction> {
|
||||
"""
|
||||
}
|
||||
returns("Boolean")
|
||||
body { "return Arrays.equals(this, other)" }
|
||||
body { "return java.util.Arrays.equals(this, other)" }
|
||||
}
|
||||
|
||||
templates add f("contentDeepEquals(other: SELF)") {
|
||||
@@ -76,7 +76,7 @@ fun arrays(): List<GenericFunction> {
|
||||
"""
|
||||
}
|
||||
returns("Boolean")
|
||||
body { "return Arrays.deepEquals(this, other)" }
|
||||
body { "return java.util.Arrays.deepEquals(this, other)" }
|
||||
}
|
||||
|
||||
templates add f("contentToString()") {
|
||||
@@ -86,7 +86,7 @@ fun arrays(): List<GenericFunction> {
|
||||
inline(Inline.Only)
|
||||
doc { "Returns a string representation of the contents of the specified array as if it is [List]." }
|
||||
returns("String")
|
||||
body { "return Arrays.toString(this)" }
|
||||
body { "return java.util.Arrays.toString(this)" }
|
||||
}
|
||||
|
||||
templates add f("contentDeepToString()") {
|
||||
@@ -104,7 +104,7 @@ fun arrays(): List<GenericFunction> {
|
||||
"""
|
||||
}
|
||||
returns("String")
|
||||
body { "return Arrays.deepToString(this)" }
|
||||
body { "return java.util.Arrays.deepToString(this)" }
|
||||
}
|
||||
|
||||
templates add f("contentHashCode()") {
|
||||
@@ -116,7 +116,7 @@ fun arrays(): List<GenericFunction> {
|
||||
"Returns a hash code based on the contents of this array as if it is [List]."
|
||||
}
|
||||
returns("Int")
|
||||
body { "return Arrays.hashCode(this)" }
|
||||
body { "return java.util.Arrays.hashCode(this)" }
|
||||
}
|
||||
|
||||
templates add f("contentDeepHashCode()") {
|
||||
@@ -133,7 +133,7 @@ fun arrays(): List<GenericFunction> {
|
||||
"""
|
||||
}
|
||||
returns("Int")
|
||||
body { "return Arrays.deepHashCode(this)" }
|
||||
body { "return java.util.Arrays.deepHashCode(this)" }
|
||||
}
|
||||
|
||||
templates addAll PrimitiveType.defaultPrimitives.map { primitive ->
|
||||
|
||||
@@ -39,7 +39,7 @@ fun specialJVM(): List<GenericFunction> {
|
||||
body() {
|
||||
"""
|
||||
val index = size
|
||||
val result = Arrays.copyOf(this, index + 1)
|
||||
val result = java.util.Arrays.copyOf(this, index + 1)
|
||||
result[index] = element
|
||||
return result
|
||||
"""
|
||||
@@ -55,7 +55,7 @@ fun specialJVM(): List<GenericFunction> {
|
||||
body {
|
||||
"""
|
||||
var index = size
|
||||
val result = Arrays.copyOf(this, index + elements.size)
|
||||
val result = java.util.Arrays.copyOf(this, index + elements.size)
|
||||
for (element in elements) result[index++] = element
|
||||
return result
|
||||
"""
|
||||
@@ -73,7 +73,7 @@ fun specialJVM(): List<GenericFunction> {
|
||||
"""
|
||||
val thisSize = size
|
||||
val arraySize = elements.size
|
||||
val result = Arrays.copyOf(this, thisSize + arraySize)
|
||||
val result = java.util.Arrays.copyOf(this, thisSize + arraySize)
|
||||
System.arraycopy(elements, 0, result, thisSize, arraySize)
|
||||
return result
|
||||
"""
|
||||
@@ -88,7 +88,7 @@ fun specialJVM(): List<GenericFunction> {
|
||||
doc { "Returns new array which is a copy of range of original array." }
|
||||
returns("SELF")
|
||||
body {
|
||||
"return Arrays.copyOfRange(this, fromIndex, toIndex)"
|
||||
"return java.util.Arrays.copyOfRange(this, fromIndex, toIndex)"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ fun specialJVM(): List<GenericFunction> {
|
||||
doc { "Returns new array which is a copy of the original array." }
|
||||
returns("SELF")
|
||||
body {
|
||||
"return Arrays.copyOf(this, size)"
|
||||
"return java.util.Arrays.copyOf(this, size)"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ fun specialJVM(): List<GenericFunction> {
|
||||
returns("SELF")
|
||||
returns(InvariantArraysOfObjects) { "Array<T?>" }
|
||||
body {
|
||||
"return Arrays.copyOf(this, newSize)"
|
||||
"return java.util.Arrays.copyOf(this, newSize)"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -122,7 +122,7 @@ fun specialJVM(): List<GenericFunction> {
|
||||
returns { "Unit" }
|
||||
body {
|
||||
"""
|
||||
Arrays.fill(this, fromIndex, toIndex, element)
|
||||
java.util.Arrays.fill(this, fromIndex, toIndex, element)
|
||||
"""
|
||||
}
|
||||
}
|
||||
@@ -145,7 +145,7 @@ fun specialJVM(): List<GenericFunction> {
|
||||
}
|
||||
returns("Int")
|
||||
body {
|
||||
"return Arrays.binarySearch(this, fromIndex, toIndex, element)"
|
||||
"return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element)"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -166,7 +166,7 @@ fun specialJVM(): List<GenericFunction> {
|
||||
}
|
||||
returns("Int")
|
||||
body {
|
||||
"return Arrays.binarySearch(this, fromIndex, toIndex, element, comparator)"
|
||||
"return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element, comparator)"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ fun specialJVM(): List<GenericFunction> {
|
||||
doc { "Sorts the array in-place." }
|
||||
returns("Unit")
|
||||
body {
|
||||
"if (size > 1) Arrays.sort(this)"
|
||||
"if (size > 1) java.util.Arrays.sort(this)"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -187,7 +187,7 @@ fun specialJVM(): List<GenericFunction> {
|
||||
doc { "Sorts a range in the array in-place." }
|
||||
returns("Unit")
|
||||
body {
|
||||
"Arrays.sort(this, fromIndex, toIndex)"
|
||||
"java.util.Arrays.sort(this, fromIndex, toIndex)"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ fun specialJVM(): List<GenericFunction> {
|
||||
doc { "Sorts the array in-place with the given [comparator]." }
|
||||
returns("Unit")
|
||||
body {
|
||||
"if (size > 1) Arrays.sort(this, comparator)"
|
||||
"if (size > 1) java.util.Arrays.sort(this, comparator)"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ fun specialJVM(): List<GenericFunction> {
|
||||
doc { "Sorts a range in the array in-place with the given [comparator]." }
|
||||
returns("Unit")
|
||||
body {
|
||||
"Arrays.sort(this, fromIndex, toIndex, comparator)"
|
||||
"java.util.Arrays.sort(this, fromIndex, toIndex, comparator)"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user