org.mapdb / Serializer / hashCode

hashCode

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.

Parameters

o - an object

seed - used to "scramble" the

Exceptions

NullPointerException - if the provided object is null

Return
a hash code of a non-null argument

See Also
Object#hashCode