@Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }
    if (getClass() != obj.getClass()) {
      return false;
    }
    Pair other = (Pair) obj;
    if (x == null) {
      if (other.x != null) {
        return false;
      }
    } else if (!x.equals(other.x)) {
      return false;
    }
    if (y == null) {
      return other.y == null;
    } else
      return y.equals(other.y);
  }
An object that holds a pair of objects.
geode-core/src/main/java/org/apache/geode/internal/cache/persistence/query/mock/Pair.java