contentEquals

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

expect infix fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean(source)
expect infix fun ByteArray?.contentEquals(other: ByteArray?): Boolean(source)
expect infix fun ShortArray?.contentEquals(other: ShortArray?): Boolean(source)
expect infix fun IntArray?.contentEquals(other: IntArray?): Boolean(source)
expect infix fun LongArray?.contentEquals(other: LongArray?): Boolean(source)
expect infix fun FloatArray?.contentEquals(other: FloatArray?): Boolean(source)
expect infix fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean(source)
expect infix fun CharArray?.contentEquals(other: CharArray?): Boolean(source)

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

Deprecated

Hidden since 1.4

Use Kotlin compiler 1.4 to avoid deprecation warning.

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

expect infix fun <T> Array<out T>.contentEquals(other: Array<out T>): Boolean(source)
expect infix fun ByteArray.contentEquals(other: ByteArray): Boolean(source)
expect infix fun ShortArray.contentEquals(other: ShortArray): Boolean(source)
expect infix fun IntArray.contentEquals(other: IntArray): Boolean(source)
expect infix fun LongArray.contentEquals(other: LongArray): Boolean(source)
expect infix fun FloatArray.contentEquals(other: FloatArray): Boolean(source)
expect infix fun CharArray.contentEquals(other: CharArray): Boolean(source)

Deprecated

Hidden since 1.4

Use Kotlin compiler 1.4 to avoid deprecation warning.

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(source)
@JvmName(name = "contentEqualsNullable")
actual infix inline fun ByteArray?.contentEquals(other: ByteArray?): Boolean(source)
@JvmName(name = "contentEqualsNullable")
actual infix inline fun ShortArray?.contentEquals(other: ShortArray?): Boolean(source)
@JvmName(name = "contentEqualsNullable")
actual infix inline fun IntArray?.contentEquals(other: IntArray?): Boolean(source)
@JvmName(name = "contentEqualsNullable")
actual infix inline fun LongArray?.contentEquals(other: LongArray?): Boolean(source)
@JvmName(name = "contentEqualsNullable")
actual infix inline fun FloatArray?.contentEquals(other: FloatArray?): Boolean(source)
@JvmName(name = "contentEqualsNullable")
actual infix inline fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean(source)
@JvmName(name = "contentEqualsNullable")
actual infix inline fun BooleanArray?.contentEquals(other: BooleanArray?): Boolean(source)
@JvmName(name = "contentEqualsNullable")
actual infix inline fun CharArray?.contentEquals(other: CharArray?): Boolean(source)

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

actual infix inline fun <T> Array<out T>.contentEquals(other: Array<out T>): Boolean(source)
actual infix inline fun ByteArray.contentEquals(other: ByteArray): Boolean(source)
actual infix inline fun ShortArray.contentEquals(other: ShortArray): Boolean(source)
actual infix inline fun IntArray.contentEquals(other: IntArray): Boolean(source)
actual infix inline fun LongArray.contentEquals(other: LongArray): Boolean(source)
actual infix inline fun FloatArray.contentEquals(other: FloatArray): Boolean(source)
actual infix inline fun DoubleArray.contentEquals(other: DoubleArray): Boolean(source)
actual infix inline fun BooleanArray.contentEquals(other: BooleanArray): Boolean(source)
actual infix inline fun CharArray.contentEquals(other: CharArray): Boolean(source)

Deprecated

Hidden since 1.4

Use Kotlin compiler 1.4 to avoid deprecation warning.

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

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

Deprecated

Hidden since 1.4

Use Kotlin compiler 1.4 to avoid deprecation warning.

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

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 CharArray.contentEquals(other: CharArray): Boolean

Deprecated

Hidden since 1.4

Use Kotlin compiler 1.4 to avoid deprecation warning.

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