in tephra-core/src/main/java/org/apache/tephra/distributed/thrift/TTransactionConflictException.java [369:408]
public int compareTo(TTransactionConflictException other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
TTransactionConflictException typedOther = (TTransactionConflictException)other;
lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTransactionId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetConflictingKey()).compareTo(typedOther.isSetConflictingKey());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetConflictingKey()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.conflictingKey, typedOther.conflictingKey);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetConflictingClient()).compareTo(typedOther.isSetConflictingClient());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetConflictingClient()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.conflictingClient, typedOther.conflictingClient);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}