open fun hashCode(o: A, seed: Int): Int
Returns a hash code of a given non-null argument. The output of the method is affected by the given seed, allowing protection against crafted hash attacks and to provide a better distribution of hashes.
o
- an object seed
- used to "scramble" the NullPointerException
- if the provided object is nullReturn
a hash code of a non-null argument
See Also
Object#hashCode