Return false as soon as the hashed value does not match. This is sound, since every class that implements equals(Object) should also implement hashCode().