public boolean equals(Object obj) { if (!(obj instanceof UpdatableProperty)) { return false; } UpdatableProperty up = (UpdatableProperty) obj; if (haveSavedValue != up.haveSavedValue) { return false; } if (setSubmittedInLocalValue != up.setSubmittedInLocalValue) { return false; } if (setLocalValueInValueBinding != up.setLocalValueInValueBinding) { return false; } if (!CoreUtils.objectsEqual(name, up.name)) { return false; } if (!CoreUtils.objectsEqual(savedValue, up.savedValue)) { return false; } if (!CoreUtils.objectsEqual(submittedValue, up.submittedValue)) { return false; } if (!CoreUtils.objectsEqual(value, up.value)) { return false; } return true; }
public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if (!(obj instanceof Move)) { return false; } Move effect = (Move) obj; if (x != effect.x) { return false; } if (y != effect.y) { return false; } if (!CoreUtils.objectsEqual(mode, effect.mode)) { return false; } return true; }