@Override public boolean equals(final Object obj) { if (!obj.getClass().equals(CopyRule.class)) { return false; } final CopyRule other = (CopyRule) obj; if ((statement != null && !statement.equals(other.statement)) || (statement == null && other.statement != null)) { return false; } return (condition == null || condition.equals(other.condition)) && (condition != null || other.condition == null); }
@Override public boolean equals(Object other) { if (!(other instanceof IndexingExpr)) { return false; } IndexingExpr arg = (IndexingExpr) other; return (this.function.equals(arg.function)) && (this.spConstraint.equals(arg.spConstraint)) && (this.arguments.equals(arg.arguments)); }