Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Wiki Markup
According to the Java API \[[API 06|AA. Java References#API 06]\] class {{java.lang.Object}} documentation:

...

Wiki Markup
This compliant solution shows how {{hashCode}} can be overridden so that the same value is generated for any two instances that compare equal when {{Object.equals()}} is used. Joshua Bloch discusses the recipe to generate such a hash function in good detail \[[Bloch 08|AA. Java References#Bloch 08]\].

...