jQuery in Action, 2nd edition*
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
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: 3018
    
  10
I use Pojomatic.
Alexander Sales
Ranch Hand

Joined: Feb 21, 2011
Posts: 89

cool Mike!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Overriding equals() and hashcode()