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

    return StringUtils.equals(name, that.name);
  }
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/distributed/internal/membership/InternalRole.java