@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof Comparison) { Comparison that = (Comparison)obj; if (this.hc != that.hc) return false; if (!this.operator.equals(that.operator)) return false; if (!this.operand1.equals(that.operand1)) return false; if (!this.operand2.equals(that.operand2)) return false; return true; } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof Comparison) { Comparison that = (Comparison)obj; if (this.hc != that.hc) return false; if (!this.operator.equals(that.operator)) return false; if (!this.operand1.equals(that.operand1)) return false; if (!this.operand2.equals(that.operand2)) return false; return true; } return false; }