W3cubDocs

/Kotlin

contentDeepHashCode

Platform and version requirements: JS (1.1), Native (1.1)
fun <T> Array<out T>.contentDeepHashCode(): Int
Platform and version requirements: JVM (1.1)
@JvmName("contentDeepHashCodeInline") fun <T> Array<out T>.contentDeepHashCode(): Int
Platform and version requirements: JS (1.4), Native (1.4)
fun <T> Array<out T>?.contentDeepHashCode(): Int
Platform and version requirements: JVM (1.4)
@JvmName("contentDeepHashCodeNullable") fun <T> Array<out T>?.contentDeepHashCode(): Int

Returns a hash code based on the contents of this array as if it is List. Nested arrays are treated as lists too.

If any of arrays contains itself on any nesting level the behavior is undefined.

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