← Docs
kotlin-stdlib / kotlin / hashCode

hashCode

Common
JVM
JS
Native
1.3
fun Any ? . hashCode ( ) : Int
(source)

Returns a hash code value for the object or zero if the object is null .

See Also

Any.hashCode

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .