This article describes a technique for overriding the equals method that preserves the contract of equals even when subclassses of concrete classes add new fields.
www.artima.com/lejava/articles/equality.html
-
Get Site Info
Independent statutory body established to help eliminate discrimination, reduce inequality, protect human rights and to build good relations, and to ensure that everyone has a fair chance to participate in society. Site provides news, infor...
www.equalityhumanrights.com/en/Pages/
-
Get Site Info
In this installment of Java theory and practice, Java developer Brian Goetz shows you the rules and guidelines you should follow when creating Java classes in order to define hashCode() and equals() effectively and appropriately.f
www.ibm.com/developerworks/java/library/j-jtp05273.html
-
Get Site Info