Override to make two instances with same value equal.
true if the objects are equal
an object to compare