/** * Compare two update commands for equality. Will only evaluate to equal if * they are IDENTICAL: group is equal, changeList contains same compareCriteria, criteria are in * the same exact structure. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(!(obj instanceof Update)) { return false; } Update other = (Update) obj; return EquivalenceUtil.areEqual(getGroup(), other.getGroup()) && getChangeList().equals(other.getChangeList()) && sameOptionAndHint(other) && EquivalenceUtil.areEqual(getCriteria(), other.getCriteria()); }
/** * Compare two update commands for equality. Will only evaluate to equal if * they are IDENTICAL: group is equal, changeList contains same compareCriteria, criteria are in * the same exact structure. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(!(obj instanceof Update)) { return false; } Update other = (Update) obj; return EquivalenceUtil.areEqual(getGroup(), other.getGroup()) && getChangeList().equals(other.getChangeList()) && sameOptionAndHint(other) && EquivalenceUtil.areEqual(getCriteria(), other.getCriteria()); }
/** * Compare two update commands for equality. Will only evaluate to equal if * they are IDENTICAL: group is equal, changeList contains same compareCriteria, criteria are in * the same exact structure. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(!(obj instanceof Update)) { return false; } Update other = (Update) obj; return EquivalenceUtil.areEqual(getGroup(), other.getGroup()) && getChangeList().equals(other.getChangeList()) && sameOptionAndHint(other) && EquivalenceUtil.areEqual(getCriteria(), other.getCriteria()); }