in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/dhratchet/message/thrift/DHRatchetMessageStruct.java [315:349]
public boolean equals(DHRatchetMessageStruct that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_peerNum = true;
boolean that_present_peerNum = true;
if (this_present_peerNum || that_present_peerNum) {
if (!(this_present_peerNum && that_present_peerNum))
return false;
if (this.peerNum != that.peerNum)
return false;
}
boolean this_present_ratchetKey = true && this.isSetRatchetKey();
boolean that_present_ratchetKey = true && that.isSetRatchetKey();
if (this_present_ratchetKey || that_present_ratchetKey) {
if (!(this_present_ratchetKey && that_present_ratchetKey))
return false;
if (!this.ratchetKey.equals(that.ratchetKey))
return false;
}
boolean this_present_ciphertext = true && this.isSetCiphertext();
boolean that_present_ciphertext = true && that.isSetCiphertext();
if (this_present_ciphertext || that_present_ciphertext) {
if (!(this_present_ciphertext && that_present_ciphertext))
return false;
if (!this.ciphertext.equals(that.ciphertext))
return false;
}
return true;
}