Kotlin HashMap hashCode()
Syntax & Examples


Syntax of HashMap.hashCode()

The syntax of HashMap.hashCode() function is:

fun hashCode(): Int

This hashCode() function of HashMap returns a hash code value for the object. The general contract of hashCode is: