Adjust stdlib to size transformation
This commit is contained in:
@@ -10445,7 +10445,7 @@ public fun <T> Array<out T>.asList(): List<T> {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun BooleanArray.asList(): List<Boolean> {
|
||||
return object : AbstractList<Boolean>(), RandomAccess {
|
||||
override fun size(): Int = this@asList.size()
|
||||
override val size: Int get() = this@asList.size()
|
||||
override fun isEmpty(): Boolean = this@asList.isEmpty()
|
||||
override fun contains(o: Any?): Boolean = this@asList.contains(o as Boolean)
|
||||
override fun iterator(): MutableIterator<Boolean> = this@asList.iterator() as MutableIterator<Boolean>
|
||||
@@ -10461,7 +10461,7 @@ public fun BooleanArray.asList(): List<Boolean> {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun ByteArray.asList(): List<Byte> {
|
||||
return object : AbstractList<Byte>(), RandomAccess {
|
||||
override fun size(): Int = this@asList.size()
|
||||
override val size: Int get() = this@asList.size()
|
||||
override fun isEmpty(): Boolean = this@asList.isEmpty()
|
||||
override fun contains(o: Any?): Boolean = this@asList.contains(o as Byte)
|
||||
override fun iterator(): MutableIterator<Byte> = this@asList.iterator() as MutableIterator<Byte>
|
||||
@@ -10477,7 +10477,7 @@ public fun ByteArray.asList(): List<Byte> {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun CharArray.asList(): List<Char> {
|
||||
return object : AbstractList<Char>(), RandomAccess {
|
||||
override fun size(): Int = this@asList.size()
|
||||
override val size: Int get() = this@asList.size()
|
||||
override fun isEmpty(): Boolean = this@asList.isEmpty()
|
||||
override fun contains(o: Any?): Boolean = this@asList.contains(o as Char)
|
||||
override fun iterator(): MutableIterator<Char> = this@asList.iterator() as MutableIterator<Char>
|
||||
@@ -10493,7 +10493,7 @@ public fun CharArray.asList(): List<Char> {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun DoubleArray.asList(): List<Double> {
|
||||
return object : AbstractList<Double>(), RandomAccess {
|
||||
override fun size(): Int = this@asList.size()
|
||||
override val size: Int get() = this@asList.size()
|
||||
override fun isEmpty(): Boolean = this@asList.isEmpty()
|
||||
override fun contains(o: Any?): Boolean = this@asList.contains(o as Double)
|
||||
override fun iterator(): MutableIterator<Double> = this@asList.iterator() as MutableIterator<Double>
|
||||
@@ -10509,7 +10509,7 @@ public fun DoubleArray.asList(): List<Double> {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun FloatArray.asList(): List<Float> {
|
||||
return object : AbstractList<Float>(), RandomAccess {
|
||||
override fun size(): Int = this@asList.size()
|
||||
override val size: Int get() = this@asList.size()
|
||||
override fun isEmpty(): Boolean = this@asList.isEmpty()
|
||||
override fun contains(o: Any?): Boolean = this@asList.contains(o as Float)
|
||||
override fun iterator(): MutableIterator<Float> = this@asList.iterator() as MutableIterator<Float>
|
||||
@@ -10525,7 +10525,7 @@ public fun FloatArray.asList(): List<Float> {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun IntArray.asList(): List<Int> {
|
||||
return object : AbstractList<Int>(), RandomAccess {
|
||||
override fun size(): Int = this@asList.size()
|
||||
override val size: Int get() = this@asList.size()
|
||||
override fun isEmpty(): Boolean = this@asList.isEmpty()
|
||||
override fun contains(o: Any?): Boolean = this@asList.contains(o as Int)
|
||||
override fun iterator(): MutableIterator<Int> = this@asList.iterator() as MutableIterator<Int>
|
||||
@@ -10541,7 +10541,7 @@ public fun IntArray.asList(): List<Int> {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun LongArray.asList(): List<Long> {
|
||||
return object : AbstractList<Long>(), RandomAccess {
|
||||
override fun size(): Int = this@asList.size()
|
||||
override val size: Int get() = this@asList.size()
|
||||
override fun isEmpty(): Boolean = this@asList.isEmpty()
|
||||
override fun contains(o: Any?): Boolean = this@asList.contains(o as Long)
|
||||
override fun iterator(): MutableIterator<Long> = this@asList.iterator() as MutableIterator<Long>
|
||||
@@ -10557,7 +10557,7 @@ public fun LongArray.asList(): List<Long> {
|
||||
@kotlin.jvm.JvmVersion
|
||||
public fun ShortArray.asList(): List<Short> {
|
||||
return object : AbstractList<Short>(), RandomAccess {
|
||||
override fun size(): Int = this@asList.size()
|
||||
override val size: Int get() = this@asList.size()
|
||||
override fun isEmpty(): Boolean = this@asList.isEmpty()
|
||||
override fun contains(o: Any?): Boolean = this@asList.contains(o as Short)
|
||||
override fun iterator(): MutableIterator<Short> = this@asList.iterator() as MutableIterator<Short>
|
||||
|
||||
Reference in New Issue
Block a user