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

    if (lockGrantorMember != that.lockGrantorMember && !(lockGrantorMember != null
        && lockGrantorMember.equals(that.lockGrantorMember))) {
      return false;
    }
    if (lockGrantorVersion != that.lockGrantorVersion) {
      return false;
    }
    return lockGrantorSerialNumber == that.lockGrantorSerialNumber;
  }
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/distributed/internal/locks/LockGrantorId.java