- Type Parameters:
T- the types of object this
- All Known Implementing Classes:
public interface Equator<T>An equation function, which determines equality between objects of type T.
equateEvaluates the two arguments for their equality.
o1- the first object to be equated.
o2- the second object to be equated.
- whether the two objects are equal.
int hash(T o)Calculates the hash for the object, based on the method of equality used in the equate method. This is used for classes that delegate their
equals(Object)method to an Equator (and so must also delegate their
hashCode()method), or for implementations of
HashedMapthat use an Equator for the key objects.
o- the object to calculate the hash for.
- the hash of the object.