Implement both methods, consistently: a[equalsSymbol](b) must be symmetric and transitive, and
equal objects must return the same [hashCodeSymbol](hash). Use hash for nested values so
they hash the same way the caller does. Value equality applies only when both values implement
the protocol; an object implementing only one of the two methods is rejected when it is hashed.
An object that defines its own value equality.
Implement both methods, consistently:
a[equalsSymbol](b)must be symmetric and transitive, and equal objects must return the same[hashCodeSymbol](hash). Usehashfor nested values so they hash the same way the caller does. Value equality applies only when both values implement the protocol; an object implementing only one of the two methods is rejected when it is hashed.Example