@Override
  public String toString() {
    StringBuilder buf =
        new StringBuilder().append("HandShake@").append(System.identityHashCode(this))
            .append(" code: ").append(getReplyCode());
    if (id != null) {
      buf.append(" identity: ");
      buf.append(id);
    }
    return buf.toString();
  }
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/internal/cache/tier/sockets/Handshake.java