Google have a nice equals method to make boiler plate equals easier to read. Particularly good if you have many attributes in the method. http://publicobject.com/2007/09/coding-in-small-with-google-collections_8175.html
Be careful to check that your objects are consistent with equals though. I have mentioned this before.
Feb
16
2010
16
2010
Google Objects.equal, useful but be careful.
Oct
31
2009
31
2009
Neat multiset in google collections API
This good thing was so small that I almost did not bother to blog it
But the devil is in the detail so here it is anyway.
I have this multi threaded application. One of the problems with integration testing it is, you can’t guarantee the order that messages will be written to a stream. [...]
Oct
24
2009
24
2009
Testing java equals and hashcode methods
Equals and hashcode bugs can be difficult to track down. So why not test them? This blog shows how easy it is to code some tests
Oct
24
2009
24
2009
IDE Generation of equals methods has its moments
This blog entry looks at the code generated by Eclipse and Netbeans and demonstrates why its a good idea to both test the code and review it thoroughly.