@Override
  public boolean equals(Object obj) {
    if (!(obj instanceof GMSMemberWrapper)) {
      return false;
    }
    MemberIdentifier other = ((GMSMemberWrapper) obj).mbr;
    // here we must compare member data rather than identifiers since the view identifiers and
    // UUID identifiers need to be ignored
    return mbr.getMemberData().compareTo(other.getMemberData(), false, false) == 0;
  }
A wrapper for MemberIdentifier objects used in encryption services
geode-membership/src/main/java/org/apache/geode/distributed/internal/membership/gms/messenger/GMSMemberWrapper.java