Exemplo 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;
  }
Exemplo n.º 2
0
 @Override
 public int hashCode() {
   return 31 * ((int) (id ^ (id >>> 32))) + rhs.hashCode();
 }