Esempio n. 1
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof IdEquation)) return false;

    IdEquation equation = (IdEquation) o;

    if (id != equation.id) return false;
    if (!rhs.equals(equation.rhs)) return false;

    return true;
  }
Esempio n. 2
0
 @Override
 public int hashCode() {
   return 31 * ((int) (id ^ (id >>> 32))) + rhs.hashCode();
 }