contentEquals

infix fun UIntArray.contentEquals(other: UIntArray): Boolean
infix fun ULongArray.contentEquals(other: ULongArray): Boolean
infix fun UByteArray.contentEquals(other: UByteArray): Boolean
infix fun UShortArray.contentEquals(other: UShortArray): 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.

Since Kotlin

1.3

infix fun UIntArray?.contentEquals(other: UIntArray?): Boolean
infix fun ULongArray?.contentEquals(other: ULongArray?): Boolean
infix fun UByteArray?.contentEquals(other: UByteArray?): Boolean
infix fun UShortArray?.contentEquals(other: UShortArray?): 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.

Since Kotlin

1.4

@DeprecatedSinceKotlin(hiddenSince = "1.4")
expect infix fun <T> Array<out T>.contentEquals(other: Array<out T>): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
expect infix fun ByteArray.contentEquals(other: ByteArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
expect infix fun ShortArray.contentEquals(other: ShortArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
expect infix fun IntArray.contentEquals(other: IntArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
expect infix fun LongArray.contentEquals(other: LongArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
expect infix fun FloatArray.contentEquals(other: FloatArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
expect infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
expect infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
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 function. For floating point numbers it means that NaN is equal to itself and -0.0 is not equal to 0.0.

Since Kotlin

1.1

expect infix fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean
expect infix fun ByteArray?.contentEquals(other: ByteArray?): Boolean
expect infix fun ShortArray?.contentEquals(other: ShortArray?): Boolean
expect infix fun IntArray?.contentEquals(other: IntArray?): Boolean
expect infix fun LongArray?.contentEquals(other: LongArray?): Boolean
expect infix fun FloatArray?.contentEquals(other: FloatArray?): Boolean
expect infix fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean
expect infix fun BooleanArray?.contentEquals(other: BooleanArray?): Boolean
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 function. For floating point numbers it means that NaN is equal to itself and -0.0 is not equal to 0.0.

Since Kotlin

1.4
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix inline fun <T> Array<out T>.contentEquals(other: Array<out T>): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix inline fun ByteArray.contentEquals(other: ByteArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix inline fun ShortArray.contentEquals(other: ShortArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix inline fun IntArray.contentEquals(other: IntArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix inline fun LongArray.contentEquals(other: LongArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix inline fun FloatArray.contentEquals(other: FloatArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix inline fun DoubleArray.contentEquals(other: DoubleArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix inline fun BooleanArray.contentEquals(other: BooleanArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix inline 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 function. For floating point numbers it means that NaN is equal to itself and -0.0 is not equal to 0.0.

Since Kotlin

1.1

@JvmName(name = "contentEqualsNullable")
actual infix inline fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean
@JvmName(name = "contentEqualsNullable")
actual infix inline fun ByteArray?.contentEquals(other: ByteArray?): Boolean
@JvmName(name = "contentEqualsNullable")
actual infix inline fun ShortArray?.contentEquals(other: ShortArray?): Boolean
@JvmName(name = "contentEqualsNullable")
actual infix inline fun IntArray?.contentEquals(other: IntArray?): Boolean
@JvmName(name = "contentEqualsNullable")
actual infix inline fun LongArray?.contentEquals(other: LongArray?): Boolean
@JvmName(name = "contentEqualsNullable")
actual infix inline fun FloatArray?.contentEquals(other: FloatArray?): Boolean
@JvmName(name = "contentEqualsNullable")
actual infix inline fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean
@JvmName(name = "contentEqualsNullable")
actual infix inline fun BooleanArray?.contentEquals(other: BooleanArray?): Boolean
@JvmName(name = "contentEqualsNullable")
actual infix inline 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 function. For floating point numbers it means that NaN is equal to itself and -0.0 is not equal to 0.0.

Since Kotlin

1.4
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix fun <T> Array<out T>.contentEquals(other: Array<out T>): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix fun IntArray.contentEquals(other: IntArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix fun LongArray.contentEquals(other: LongArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual 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 function. For floating point numbers it means that NaN is equal to itself and -0.0 is not equal to 0.0.

Since Kotlin

1.1

actual infix fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean
actual infix fun ByteArray?.contentEquals(other: ByteArray?): Boolean
actual infix fun ShortArray?.contentEquals(other: ShortArray?): Boolean
actual infix fun IntArray?.contentEquals(other: IntArray?): Boolean
actual infix fun LongArray?.contentEquals(other: LongArray?): Boolean
actual infix fun FloatArray?.contentEquals(other: FloatArray?): Boolean
actual infix fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean
actual infix fun BooleanArray?.contentEquals(other: BooleanArray?): Boolean
actual 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 function. For floating point numbers it means that NaN is equal to itself and -0.0 is not equal to 0.0.

Since Kotlin

1.4
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix fun <T> Array<out T>.contentEquals(other: Array<out T>): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix fun IntArray.contentEquals(other: IntArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix fun LongArray.contentEquals(other: LongArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
actual 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 function. For floating point numbers it means that NaN is equal to itself and -0.0 is not equal to 0.0.

Since Kotlin

1.1

actual infix fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean
actual infix fun ByteArray?.contentEquals(other: ByteArray?): Boolean
actual infix fun ShortArray?.contentEquals(other: ShortArray?): Boolean
actual infix fun IntArray?.contentEquals(other: IntArray?): Boolean
actual infix fun LongArray?.contentEquals(other: LongArray?): Boolean
actual infix fun FloatArray?.contentEquals(other: FloatArray?): Boolean
actual infix fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean
actual infix fun BooleanArray?.contentEquals(other: BooleanArray?): Boolean
actual 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 function. For floating point numbers it means that NaN is equal to itself and -0.0 is not equal to 0.0.

Since Kotlin

1.4