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
actual infix fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean(source)
actual infix fun ByteArray?.contentEquals(other: ByteArray?): Boolean(source)
actual infix fun ShortArray?.contentEquals(other: ShortArray?): Boolean(source)
actual infix fun IntArray?.contentEquals(other: IntArray?): Boolean(source)
actual infix fun LongArray?.contentEquals(other: LongArray?): Boolean(source)
actual infix fun FloatArray?.contentEquals(other: FloatArray?): Boolean(source)
actual infix fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean(source)
actual 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
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)

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(source)
actual infix fun ByteArray?.contentEquals(other: ByteArray?): Boolean(source)
actual infix fun ShortArray?.contentEquals(other: ShortArray?): Boolean(source)
actual infix fun IntArray?.contentEquals(other: IntArray?): Boolean(source)
actual infix fun LongArray?.contentEquals(other: LongArray?): Boolean(source)
actual infix fun FloatArray?.contentEquals(other: FloatArray?): Boolean(source)
actual infix fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean(source)
actual 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

infix fun <T> Array<out T>.contentEquals(other: Array<out T>): 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.3

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
actual infix fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean(source)
actual infix fun ByteArray?.contentEquals(other: ByteArray?): Boolean(source)
actual infix fun ShortArray?.contentEquals(other: ShortArray?): Boolean(source)
actual infix fun IntArray?.contentEquals(other: IntArray?): Boolean(source)
actual infix fun LongArray?.contentEquals(other: LongArray?): Boolean(source)
actual infix fun FloatArray?.contentEquals(other: FloatArray?): Boolean(source)
actual infix fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean(source)
actual 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.8

infix fun <T> Array<out T>.contentEquals(other: Array<out T>): 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.8

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.8
actual infix fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean(source)
actual infix fun ByteArray?.contentEquals(other: ByteArray?): Boolean(source)
actual infix fun ShortArray?.contentEquals(other: ShortArray?): Boolean(source)
actual infix fun IntArray?.contentEquals(other: IntArray?): Boolean(source)
actual infix fun LongArray?.contentEquals(other: LongArray?): Boolean(source)
actual infix fun FloatArray?.contentEquals(other: FloatArray?): Boolean(source)
actual infix fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean(source)
actual 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.8

infix fun <T> Array<out T>.contentEquals(other: Array<out T>): 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.8

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.8