public boolean equals()

in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/SetupMessageStruct.java [432:484]


  public boolean equals(SetupMessageStruct that) {
    if (that == null)
      return false;
    if (this == that)
      return true;

    boolean this_present_leafNum = true;
    boolean that_present_leafNum = true;
    if (this_present_leafNum || that_present_leafNum) {
      if (!(this_present_leafNum && that_present_leafNum))
        return false;
      if (this.leafNum != that.leafNum)
        return false;
    }

    boolean this_present_identities = true && this.isSetIdentities();
    boolean that_present_identities = true && that.isSetIdentities();
    if (this_present_identities || that_present_identities) {
      if (!(this_present_identities && that_present_identities))
        return false;
      if (!this.identities.equals(that.identities))
        return false;
    }

    boolean this_present_ephemeralKeys = true && this.isSetEphemeralKeys();
    boolean that_present_ephemeralKeys = true && that.isSetEphemeralKeys();
    if (this_present_ephemeralKeys || that_present_ephemeralKeys) {
      if (!(this_present_ephemeralKeys && that_present_ephemeralKeys))
        return false;
      if (!this.ephemeralKeys.equals(that.ephemeralKeys))
        return false;
    }

    boolean this_present_keyExchangeKey = true && this.isSetKeyExchangeKey();
    boolean that_present_keyExchangeKey = true && that.isSetKeyExchangeKey();
    if (this_present_keyExchangeKey || that_present_keyExchangeKey) {
      if (!(this_present_keyExchangeKey && that_present_keyExchangeKey))
        return false;
      if (!this.keyExchangeKey.equals(that.keyExchangeKey))
        return false;
    }

    boolean this_present_tree = true && this.isSetTree();
    boolean that_present_tree = true && that.isSetTree();
    if (this_present_tree || that_present_tree) {
      if (!(this_present_tree && that_present_tree))
        return false;
      if (!this.tree.equals(that.tree))
        return false;
    }

    return true;
  }