in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/SetupMessageStruct.java [512:570]
public int compareTo(SetupMessageStruct other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetLeafNum()).compareTo(other.isSetLeafNum());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetLeafNum()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.leafNum, other.leafNum);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetIdentities()).compareTo(other.isSetIdentities());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetIdentities()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.identities, other.identities);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetEphemeralKeys()).compareTo(other.isSetEphemeralKeys());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEphemeralKeys()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ephemeralKeys, other.ephemeralKeys);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetKeyExchangeKey()).compareTo(other.isSetKeyExchangeKey());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetKeyExchangeKey()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keyExchangeKey, other.keyExchangeKey);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetTree()).compareTo(other.isSetTree());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTree()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tree, other.tree);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}