Package com.qfs.dic
Interface IHashingStrategy<T>
- All Superinterfaces:
Serializable
This interfaces defines a hashing + equals strategy. It is designed to be used with dictionaries.
- Author:
- ActiveViam
-
Method Summary
Modifier and TypeMethodDescriptionintcomputeHashcode(T object) Compute the hashcode of an object according to that hashing strategy.booleanComputes equality of two object instances according to that hashing strategy.
-
Method Details
-
computeHashcode
Compute the hashcode of an object according to that hashing strategy.- Parameters:
object- The object- Returns:
- The hashcode
-
equals
Computes equality of two object instances according to that hashing strategy.- Parameters:
object1- The first objectobject2- The second object- Returns:
- true if the objects are equal according to that hashing strategy, false otherwise
-