previous
|
start
|
next
Creating Hash Codes for your classes
Your
hashCode
method must be compatible with the
equals
method
if x.equals(y) then x.hashCode() == y.hashCode()
In general, define either both
hashCode
and
equals
methods or neither
previous
|
start
|
next