Esempio n. 1
0
 public int doHashCode() {
   int result = name != null ? name.hashCode() : 0;
   result = 31 * result + (operator != null ? operator.hashCode() : 0);
   result = 31 * result + (value != null ? value.hashCode() : 0);
   result = 31 * result + (values != null ? Arrays.hashCode(values) : 0);
   return result;
 }
Esempio n. 2
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof Criterion)) return false;

    Criterion criterion = (Criterion) o;

    if (name != null ? !name.equals(criterion.name) : criterion.name != null) return false;
    if (operator != criterion.operator) return false;
    if (value != null ? !value.equals(criterion.value) : criterion.value != null) return false;
    if (!Arrays.equals(values, criterion.values)) return false;

    return true;
  }