@Override
  public boolean equals(Object obj) {
    if (!(obj instanceof Struct)) {
      return false;
    }
    Struct s = (Struct) obj;
    if (!Arrays.equals(getFieldTypes(), s.getStructType().getFieldTypes())) {
      return false;
    }
    if (!Arrays.equals(getFieldNames(), s.getStructType().getFieldNames())) {
      return false;
    }
    return Arrays.equals(getFieldValues(), s.getFieldValues());
  }
Helper method, Returns field values, in case of PdxInstance gets the domain objects.
geode-core/src/main/java/org/apache/geode/cache/query/internal/StructImpl.java