@Override
  public boolean equals(Object other) {
    if (other == this) {
      return true;
    }
    if (other == null) {
      return false;
    }
    if (!(other instanceof ManagedResourceType)) {
      return false;
    }
    final ManagedResourceType that = (ManagedResourceType) other;

    if (!StringUtils.equals(name, that.name)) {
      return false;
    }
    return clazz == that.clazz || clazz != null && clazz.equals(that.clazz);
  }
Indicates whether some other object is "equal to" this one.

@param other the reference object with which to compare.
@return true if this object is the same as the obj argument; false otherwise.
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/ManagedResourceType.java