Pages tagged hashcode:

How to Write an Equality Method in Java
http://www.artima.com/lejava/articles/equality.html

"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. "