|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Equality<E>
This interface declares a method which defines equality been objects of type E
| Method Summary | |
|---|---|
boolean |
equates(E a,
E b)
Returns a boolean indicating if the two parameters are considered equal by this Equality |
int |
hash(E o)
Returns the hash value of the object as defined by this Equality. |
| Method Detail |
|---|
boolean equates(E a,
E b)
boolean indicating if the two parameters are considered equal by this Equality
a - an Object of type Eb - another Object of type E
true if this equality equates the two argumentsint hash(E o)
Equality. For all objects this Equality can be
applied to, it should be the case that equates(a, b) ==> hash(a) == hash(b)
o - an Object of type E
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||