class PdxType implements DataSerializable {

  public boolean compatible(PdxType other) {
    if (other == null)
      return false;
    if (!getClassName().equals(other.getClassName())) {
      return false;
    }

    Collection<PdxField> myFields = getSortedFields();
    Collection<PdxField> otherFields = other.getSortedFields();

    return myFields.equals(otherFields);
  }

  public  PdxType();
  public  PdxType(String name, boolean expectDomainClass);
  public  PdxType(PdxType copy);

}