This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hashCode()

 
mike molin
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
can some explain what hashCode() is for me, how it works when to use it and why, and maybe give me and example. why not use equals instead
/Kiades
 
Muhammad Khojaye
Ranch Hand
Posts: 449
IntelliJ IDE Java Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mike molin wrote:Hi
can some explain what hashCode() is for me, how it works when to use it and why, and maybe give me and example. why not use equals instead
/Kiades

What the hashcode contract says about?
Also check out http://java.dzone.com/articles/java-hashing. Let us know, if there is any query.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic