Package com.qfs.dic
Interface IHashingStrategy<T>
-
- All Superinterfaces:
Serializable
public interface IHashingStrategy<T> extends Serializable
This interfaces defines a hashing + equals strategy. It is designed to be used with dictionaries.- Author:
- ActiveViam
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcomputeHashcode(T object)Compute the hashcode of an object according to that hashing strategy.booleanequals(T object1, T object2)Computes equality of two object instances according to that hashing strategy.
-
-
-
Method Detail
-
computeHashcode
int computeHashcode(T object)
Compute the hashcode of an object according to that hashing strategy.- Parameters:
object- The object- Returns:
- The hashcode
-
-