You have to compare all of the fields with each ot...
# codereview
d
You have to compare all of the fields with each other. IDEA does a pretty decent job if you tell it to generate equals/hashcode methods for you.