W3cubDocs

/Kotlin

contentHashCode

Platform and version requirements: JVM (1.1), JS (1.1), Native (1.1)
fun <T> Array<out T>.contentHashCode(): Int
fun ByteArray.contentHashCode(): Int
fun ShortArray.contentHashCode(): Int
fun IntArray.contentHashCode(): Int
fun LongArray.contentHashCode(): Int
fun FloatArray.contentHashCode(): Int
fun DoubleArray.contentHashCode(): Int
fun BooleanArray.contentHashCode(): Int
fun CharArray.contentHashCode(): Int

Returns a hash code based on the contents of this array as if it is List.

Platform and version requirements: JVM (1.3), JS (1.3), Native (1.3)
@ExperimentalUnsignedTypes fun UIntArray.contentHashCode(): Int
@ExperimentalUnsignedTypes fun ULongArray.contentHashCode(): Int
@ExperimentalUnsignedTypes fun UByteArray.contentHashCode(): Int
@ExperimentalUnsignedTypes fun UShortArray.contentHashCode(): Int

Returns a hash code based on the contents of this array as if it is List.

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/content-hash-code.html