in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/dhratchet/message/thrift/DHRatchetSetupMessageStruct.java [315:349]
public boolean equals(DHRatchetSetupMessageStruct 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_identityKey = true && this.isSetIdentityKey();
boolean that_present_identityKey = true && that.isSetIdentityKey();
if (this_present_identityKey || that_present_identityKey) {
if (!(this_present_identityKey && that_present_identityKey))
return false;
if (!this.identityKey.equals(that.identityKey))
return false;
}
boolean this_present_ephemeralKey = true && this.isSetEphemeralKey();
boolean that_present_ephemeralKey = true && that.isSetEphemeralKey();
if (this_present_ephemeralKey || that_present_ephemeralKey) {
if (!(this_present_ephemeralKey && that_present_ephemeralKey))
return false;
if (!this.ephemeralKey.equals(that.ephemeralKey))
return false;
}
return true;
}