- There’s no need to call
equalsifhashCodediffers. - There’s no need to call
hashCodeif(obj1 == obj2). - There’s no need for
hashCodeand/orequalsjust to iterate – you’re not comparing objects - When needed to distinguish in between objects.
equals if hashCode differs.hashCode if (obj1 == obj2).hashCode and/or equals just to iterate – you’re not comparing objects