This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data 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: 3019
    
  10
I use Pojomatic.
Alexander Sales
Ranch Hand

Joined: Feb 21, 2011
Posts: 89

cool Mike!
 
wood burning stoves
 
subject: Overriding equals() and hashcode()