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

    if (member != that.member && !(member != null && member.equals(that.member))) {
      return false;
    }
    return threadId == that.threadId;
  }
Constructs new immutable instance of RemoteThread
geode-core/src/main/java/org/apache/geode/distributed/internal/locks/RemoteThread.java