@HotSpotIntrinsicCandidate
public native int hashCode ()

Overriding: java.lang.Object

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (The hashCode may or may not be implemented as some function of an object's memory address at some point in time.)

Returns:  a hash code value for this object.

See also:
java.lang.Object.equals(java.lang.Object), java.lang.System.identityHashCode