Interface HashingStrategy<E>
- All Superinterfaces:
Serializable
public interface HashingStrategy<E> extends Serializable
Interface for supporting user defined hashing strategies in Sets and Maps
-
Method Summary
Modifier and Type Method Description int
computeHashCode(E object)
Computes the hashCode of the object as defined by the user.boolean
equals(E object1, E object2)
Checks two objects for equality.
-
Method Details
-
computeHashCode
Computes the hashCode of the object as defined by the user. -
equals
Checks two objects for equality. The equality check can use the objects own equals() method or a custom method defined by the user. It should be consistent with the computeHashCode() method.
-