@Override
  public int compareTo(Role o) {
    if ((o == null) || !(o instanceof InternalRole)) {
      throw new ClassCastException(
          "InternalRole.compareTo(): comparison between different classes");
    }
    InternalRole other = (InternalRole) o;
    return name.compareTo(other.name);
  }
implements the java.lang.Comparable interface

@see java.lang.Comparable
@param o the Object to be compared
@return a negative integer, zero, or a positive integer as this object is less than, equal to,
        or greater than the specified object.
@exception java.lang.ClassCastException if the specified object's type prevents it from being
           compared to this Object.
geode-core/src/main/java/org/apache/geode/distributed/internal/membership/InternalRole.java