@Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }
    if (getClass() != obj.getClass()) {
      return false;
    }
    EventID other = (EventID) obj;
    if (sequenceID != other.sequenceID) {
      return false;
    }
    if (threadID != other.threadID) {
      return false;
    }
    return equalMembershipIds(membershipID, other.membershipID);
  }
Returns a byte[] whose contents are calculated by calling
{@link #getOptimizedByteArrayForEventID}

@since GemFire 5.7
geode-core/src/main/java/org/apache/geode/internal/cache/EventID.java