in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/NodeStruct.java [352:390]
public int compareTo(NodeStruct other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.valueOf(isSetPublicKey()).compareTo(other.isSetPublicKey());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPublicKey()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.publicKey, other.publicKey);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetLeft()).compareTo(other.isSetLeft());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetLeft()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.left, other.left);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.valueOf(isSetRight()).compareTo(other.isSetRight());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRight()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.right, other.right);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}