contentEquals

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)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


expect infix fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. For floating point numbers, this means NaN is equal to itself and -0.0 is not equal to 0.0.

The arrays are also considered structurally equal if both are null.

If the arrays contain nested arrays, use contentDeepEquals to recursively compare their elements.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


expect infix fun FloatArray?.contentEquals(other: FloatArray?): Boolean(source)
expect infix fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. This means NaN is equal to itself and -0.0 is not equal to 0.0.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


expect infix fun CharArray?.contentEquals(other: CharArray?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples

actual infix fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. For floating point numbers, this means NaN is equal to itself and -0.0 is not equal to 0.0.

The arrays are also considered structurally equal if both are null.

If the arrays contain nested arrays, use contentDeepEquals to recursively compare their elements.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


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)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


actual infix fun FloatArray?.contentEquals(other: FloatArray?): Boolean(source)
actual infix fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. This means NaN is equal to itself and -0.0 is not equal to 0.0.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


actual infix fun CharArray?.contentEquals(other: CharArray?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples

actual infix inline fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. For floating point numbers, this means NaN is equal to itself and -0.0 is not equal to 0.0.

The arrays are also considered structurally equal if both are null.

If the arrays contain nested arrays, use contentDeepEquals to recursively compare their elements.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


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)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


actual infix inline fun FloatArray?.contentEquals(other: FloatArray?): Boolean(source)
actual infix inline fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. This means NaN is equal to itself and -0.0 is not equal to 0.0.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


actual infix inline fun BooleanArray?.contentEquals(other: BooleanArray?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


actual infix inline fun CharArray?.contentEquals(other: CharArray?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples

actual infix fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. For floating point numbers, this means NaN is equal to itself and -0.0 is not equal to 0.0.

The arrays are also considered structurally equal if both are null.

If the arrays contain nested arrays, use contentDeepEquals to recursively compare their elements.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


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)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


actual infix fun FloatArray?.contentEquals(other: FloatArray?): Boolean(source)
actual infix fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. This means NaN is equal to itself and -0.0 is not equal to 0.0.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


actual infix fun CharArray?.contentEquals(other: CharArray?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.4

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


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.

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. For floating point numbers, this means NaN is equal to itself and -0.0 is not equal to 0.0.

If the arrays contain nested arrays, use contentDeepEquals to recursively compare their elements.

Since Kotlin

1.3

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


Deprecated

Hidden since 1.4

Use Kotlin compiler 1.4 to avoid deprecation warning.

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

Since Kotlin

1.3

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


Deprecated

Hidden since 1.4

Use Kotlin compiler 1.4 to avoid deprecation warning.

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. This means NaN is equal to itself and -0.0 is not equal to 0.0.

Since Kotlin

1.3

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


Deprecated

Hidden since 1.4

Use Kotlin compiler 1.4 to avoid deprecation warning.

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

Since Kotlin

1.3

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


Deprecated

Hidden since 1.4

Use Kotlin compiler 1.4 to avoid deprecation warning.

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

Since Kotlin

1.3

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples

actual infix fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. For floating point numbers, this means NaN is equal to itself and -0.0 is not equal to 0.0.

The arrays are also considered structurally equal if both are null.

If the arrays contain nested arrays, use contentDeepEquals to recursively compare their elements.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


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)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


actual infix fun FloatArray?.contentEquals(other: FloatArray?): Boolean(source)
actual infix fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. This means NaN is equal to itself and -0.0 is not equal to 0.0.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


actual infix fun CharArray?.contentEquals(other: CharArray?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


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.

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. For floating point numbers, this means NaN is equal to itself and -0.0 is not equal to 0.0.

If the arrays contain nested arrays, use contentDeepEquals to recursively compare their elements.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


Deprecated

Hidden since 1.4

Use Kotlin compiler 1.4 to avoid deprecation warning.

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


Deprecated

Hidden since 1.4

Use Kotlin compiler 1.4 to avoid deprecation warning.

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. This means NaN is equal to itself and -0.0 is not equal to 0.0.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


Deprecated

Hidden since 1.4

Use Kotlin compiler 1.4 to avoid deprecation warning.

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


Deprecated

Hidden since 1.4

Use Kotlin compiler 1.4 to avoid deprecation warning.

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples

actual infix fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. For floating point numbers, this means NaN is equal to itself and -0.0 is not equal to 0.0.

The arrays are also considered structurally equal if both are null.

If the arrays contain nested arrays, use contentDeepEquals to recursively compare their elements.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


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)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


actual infix fun FloatArray?.contentEquals(other: FloatArray?): Boolean(source)
actual infix fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. This means NaN is equal to itself and -0.0 is not equal to 0.0.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


actual infix fun CharArray?.contentEquals(other: CharArray?): Boolean(source)

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

The arrays are also considered structurally equal if both are null.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


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.

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. For floating point numbers, this means NaN is equal to itself and -0.0 is not equal to 0.0.

If the arrays contain nested arrays, use contentDeepEquals to recursively compare their elements.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


Deprecated

Hidden since 1.4

Use Kotlin compiler 1.4 to avoid deprecation warning.

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


Deprecated

Hidden since 1.4

Use Kotlin compiler 1.4 to avoid deprecation warning.

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. This means NaN is equal to itself and -0.0 is not equal to 0.0.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


Deprecated

Hidden since 1.4

Use Kotlin compiler 1.4 to avoid deprecation warning.

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples


Deprecated

Hidden since 1.4

Use Kotlin compiler 1.4 to avoid deprecation warning.

Checks if the two specified arrays are structurally equal to one another.

Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.

Since Kotlin

1.8

Return

true if the two arrays are structurally equal, false otherwise.

Parameters

other

the array to compare with this array.

Samples