wood burning stoves 2.0*
The moose likes Java in General and the fly likes Overriding equals() and hashcode() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Overriding equals() and hashcode()" Watch "Overriding equals() and hashcode()" New topic
Author

Overriding equals() and hashcode()

Alexander Sales
Ranch Hand

Joined: Feb 21, 2011
Posts: 89

do you override equals and hashcodes manually? or do use eclipse auto generated overriding of equals and hashcodes? which is more efficient?


OCPJP 6, OCEWCD Java EE 6
Mike Simmons
Ranch Hand

Joined: Mar 05, 2008
Posts: 2996
    
    9
I use Pojomatic.
Alexander Sales
Ranch Hand

Joined: Feb 21, 2011
Posts: 89

cool Mike!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Overriding equals() and hashcode()
 
Similar Threads
Inquisition qustion regarding equals() and hashCode()
Hashcode and equals contract - K&B Mock
HashCodes
equals and hash code relation.
HashMap and hashCode method