|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
equals implementation of the given object is reflexive: the object must be equal to
itself, which it would be at any given instance; unless you intentionally override the equals method to behave
otherwise.
equals implementation of the given objects is symmetric: if object of one class is equal
to another class object, the other class object must be equal to this class object.
equals implementation of the given objects is transitive: if the first object is equal to
the second object and the second object is equal to the third object; then the first object is equal to the third
object.
equals implementation of the given object returns false when the object is
compared to null.
equals/hashCode contract of the given objects is implemented correctly: if two
objects are equal, then they must have the same hash code, however the opposite is NOT true.
equals and hashCode are implemented correctly.equals and hashCode are
implemented correctly.Person comparator comparing name case insensitively.equals returns false if a null is passed as
argument.
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||