Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

hashCode()  RSS feed

 
sanjana narayanan
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anyone explain the following statement on hashCode with an eg?
"Ideally, a hash funtion should distribute any reasonable collection of unequal instances uniformly across all possible hash values."
-Sanjana
 
Gian Franco
blacksmith
Ranch Hand
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sanjana,
I think it's best to check the following article
it helped me understanding the necessary details.
Article on Equals and Hash Code
Greetings,
Gian Franco
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!