contentEquals
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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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. 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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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. 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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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. 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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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. 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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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. 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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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. 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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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. 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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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. 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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.4Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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. 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.3Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.3Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.3Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.3Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.3Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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. 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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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. 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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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. 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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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. 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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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. 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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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. 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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
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.8Return
true
if the two arrays are structurally equal, false
otherwise.
Parameters
the array to compare with this array.