|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Eq
Marks value types which can be compared for equivalence in a way that guarantees that equivalent values can be substituted for each other without changing the meaning of a program.
When you implement this, don't forget to override equals and hashCode as well. You should guarantee that if an object is "eqTo" another object it also "equals" that object and has the same hashCode.
Method Summary | |
---|---|
boolean |
eqTo(java.lang.Object that)
Return true if this is equivalent to that. |
Method Detail |
---|
boolean eqTo(java.lang.Object that)
Equal.eq(Object, Object)
. Two "eq" objects should have
the same hashCode at the time they are compared.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |