T - the hashed element's typepublic static interface Hasher.ImmutableHashCode<T> extends Hasher<T>
Hasher implementation will always return
the same hash value for the same object.
String) or for the identity hash code provided
by System.identityHashCode(Object).Hasher
implementation to ensure unchanging hash codes even for objects that are mutable in terms of their
Object.equals(Object) implemententation.
The purpose of this marker interface is to indicate that using an implementation of it will not create hash values that will mess up a hash-based element distribution, which allows certain algorithm optimisations, for example in hashing collections.
Hasher.IdentityHashCodeHasher.IdentityHashCode<T>, Hasher.ImmutableHashCode<T>, Hasher.ValueHashCode<T>Copyright © 2022 MicroStream Software. All rights reserved.