@Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }
    if (!(obj instanceof ComparableEnum)) {
      return false;
    }
    ComparableEnum other = (ComparableEnum) obj;
    if (className == null) {
      if (other.getClassName() != null) {
        return false;
      }
    } else if (!className.equals(other.getClassName())) {
      return false;
    }
    if (enumName == null) {
      return other.getName() == null;
    } else
      return enumName.equals(other.getName());
  }
Used to represent an enum value as a PdxInstance

@since GemFire 6.6.2
geode-core/src/main/java/org/apache/geode/pdx/internal/PdxInstanceEnum.java