@Override
    public boolean equals(final Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof ClassCode)) {
        return false;
      }
      final ClassCode other = (ClassCode) obj;
      return other.ordinal == ordinal;
    }
Indicates whether other object is same as this one.

@return true if other object is same as this one.
geode-dunit/src/main/java/org/apache/geode/security/generator/AuthzCredentialGenerator.java