Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Quoting the docs: "If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result." Otherwise, the object will not work properly as an element of a hashed collection (Set) or as a key in a hashtable. See: - -- J
Replies:
|
Sponsored Links
|