Results 21 to 21 of 21
Thread: hashCode idea
- 08-14-2011, 03:37 PM #21
Member
- Join Date
- Nov 2010
- Location
- VT, USA
- Posts
- 31
- Rep Power
- 0
Thanks for the move. I could not think of which forum to post to. I guess for me (so far) it seems to come down to seeing what happens with two of class Object. They're never equals unless they are refs to the same object. But they become equal when Java overrides them, not using Object's hashCode() anymore, but actually doing a content comparison (in a derived type). The hashCode is a slice of equals, whose uniqueness may only assist in a little internal performance, but which isn't required. (If I get that right) Cheers, Mark
Similar Threads
-
Hashcode definition question!!
By chathura87 in forum New To JavaReplies: 8Last Post: 03-03-2011, 03:28 PM -
equals() and HashCode()
By jomypgeorge in forum New To JavaReplies: 1Last Post: 02-10-2011, 07:34 AM -
hashCode() contract
By jomypgeorge in forum New To JavaReplies: 3Last Post: 01-14-2011, 11:32 AM -
hashCode questions
By alpdog14 in forum New To JavaReplies: 3Last Post: 02-19-2010, 11:00 PM -
An acceptable hashcode?
By dsym@comcast.net in forum New To JavaReplies: 7Last Post: 03-29-2009, 09:04 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks