Add equals and hashcode methods.
Add equals and hashcode methods.