Override equals and hashCode to define object equality. This allows you to use the Collections framework directly through a Set, or using List methods to retain or remove equal objects or Collections...