T- the types of object this
public interface Equator<T>
It is the functional sibling of
Equator is to
Comparator is to
|Modifier and Type||Method and Description|
Evaluates the two arguments for their equality.
Calculates the hash for the object, based on the method of equality used in the equate method.
boolean equate(T o1, T o2)
o1- the first object to be equated.
o2- the second object to be equated.
int hash(T o)
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.
Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.