contentEquals

Common
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
Common
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")
infix fun <T> Array<out T>.contentEquals(other: Array<out T>): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun ByteArray.contentEquals(other: ByteArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun ShortArray.contentEquals(other: ShortArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun IntArray.contentEquals(other: IntArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun LongArray.contentEquals(other: LongArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun FloatArray.contentEquals(other: FloatArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun CharArray.contentEquals(other: CharArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix inline fun <T> Array<out T>.contentEquals(other: Array<out T>): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix inline fun ByteArray.contentEquals(other: ByteArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix inline fun ShortArray.contentEquals(other: ShortArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix inline fun IntArray.contentEquals(other: IntArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix inline fun LongArray.contentEquals(other: LongArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix inline fun FloatArray.contentEquals(other: FloatArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix inline fun DoubleArray.contentEquals(other: DoubleArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix inline fun BooleanArray.contentEquals(other: BooleanArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix inline fun CharArray.contentEquals(other: CharArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun <T> Array<out T>.contentEquals(other: Array<out T>): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun ByteArray.contentEquals(other: ByteArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun ShortArray.contentEquals(other: ShortArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun IntArray.contentEquals(other: IntArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun LongArray.contentEquals(other: LongArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun FloatArray.contentEquals(other: FloatArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun CharArray.contentEquals(other: CharArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun <T> Array<out T>.contentEquals(other: Array<out T>): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun ByteArray.contentEquals(other: ByteArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun ShortArray.contentEquals(other: ShortArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun IntArray.contentEquals(other: IntArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun LongArray.contentEquals(other: LongArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun FloatArray.contentEquals(other: FloatArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean
@DeprecatedSinceKotlin(hiddenSince = "1.4")
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
infix fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean
infix fun ByteArray?.contentEquals(other: ByteArray?): Boolean
infix fun ShortArray?.contentEquals(other: ShortArray?): Boolean
infix fun IntArray?.contentEquals(other: IntArray?): Boolean
infix fun LongArray?.contentEquals(other: LongArray?): Boolean
infix fun FloatArray?.contentEquals(other: FloatArray?): Boolean
infix fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean
infix fun BooleanArray?.contentEquals(other: BooleanArray?): Boolean
infix fun CharArray?.contentEquals(other: CharArray?): Boolean
@JvmName(name = "contentEqualsNullable")
infix inline fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean
@JvmName(name = "contentEqualsNullable")
infix inline fun ByteArray?.contentEquals(other: ByteArray?): Boolean
@JvmName(name = "contentEqualsNullable")
infix inline fun ShortArray?.contentEquals(other: ShortArray?): Boolean
@JvmName(name = "contentEqualsNullable")
infix inline fun IntArray?.contentEquals(other: IntArray?): Boolean
@JvmName(name = "contentEqualsNullable")
infix inline fun LongArray?.contentEquals(other: LongArray?): Boolean
@JvmName(name = "contentEqualsNullable")
infix inline fun FloatArray?.contentEquals(other: FloatArray?): Boolean
@JvmName(name = "contentEqualsNullable")
infix inline fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean
@JvmName(name = "contentEqualsNullable")
infix inline fun BooleanArray?.contentEquals(other: BooleanArray?): Boolean
@JvmName(name = "contentEqualsNullable")
infix inline fun CharArray?.contentEquals(other: CharArray?): Boolean
infix fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean
infix fun ByteArray?.contentEquals(other: ByteArray?): Boolean
infix fun ShortArray?.contentEquals(other: ShortArray?): Boolean
infix fun IntArray?.contentEquals(other: IntArray?): Boolean
infix fun LongArray?.contentEquals(other: LongArray?): Boolean
infix fun FloatArray?.contentEquals(other: FloatArray?): Boolean
infix fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean
infix fun BooleanArray?.contentEquals(other: BooleanArray?): Boolean
infix fun CharArray?.contentEquals(other: CharArray?): Boolean
infix fun <T> Array<out T>?.contentEquals(other: Array<out T>?): Boolean
infix fun ByteArray?.contentEquals(other: ByteArray?): Boolean
infix fun ShortArray?.contentEquals(other: ShortArray?): Boolean
infix fun IntArray?.contentEquals(other: IntArray?): Boolean
infix fun LongArray?.contentEquals(other: LongArray?): Boolean
infix fun FloatArray?.contentEquals(other: FloatArray?): Boolean
infix fun DoubleArray?.contentEquals(other: DoubleArray?): Boolean
infix fun BooleanArray?.contentEquals(other: BooleanArray?): Boolean
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