@Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }
    if (!(obj instanceof LocalThread)) {
      return false;
    }
    LocalThread other = (LocalThread) obj;
    if (threadId != other.threadId) {
      return false;
    }
    if (locality == null) {
      return other.locality == null;
    } else
      return locality.equals(other.locality);
  }
This class is serializable version of the java 1.6 ThreadInfo class. It also holds a locality
field to identify the VM where the thread exists.
geode-core/src/main/java/org/apache/geode/distributed/internal/deadlock/LocalThread.java