|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the types of object this Equator
can evaluate.public interface Equator<T>
An equation function, which determines equality between objects of type T.
It is the functional sibling of Comparator
; Equator
is to
Object
as Comparator
is to Comparable
.
Method Summary | |
---|---|
boolean |
equate(T o1,
T o2)
Evaluates the two arguments for their equality. |
int |
hash(T o)
Calculates the hash for the object, based on the method of equality used in the equate method. |
Method Detail |
---|
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 HashedMap
that use an Equator for the key objects.
o
- the object to calculate the hash for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |