Exemplo n.º 1
0
 @Override
 public int hashCode() {
   int result = rowInspector != null ? rowInspector.hashCode() : 0;
   result = 31 * result + getClass().getCanonicalName().hashCode();
   result = 31 * result + (other != null ? other.hashCode() : 0);
   return result;
 }
Exemplo n.º 2
0
  @Override
  public boolean equals(Object other) {
    if (this == other) {
      return true;
    }
    if (!(other instanceof PairCheck)) {
      return false;
    }

    PairCheck pairCheck = (PairCheck) other;

    if (getClass().equals(other.getClass())) {
      return rowInspector.getRowIndex() == pairCheck.rowInspector.getRowIndex()
          && this.other.getRowIndex() == pairCheck.other.getRowIndex();
    } else {
      return false;
    }
  }