public int compareTo(ThriftJobStatus other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; ThriftJobStatus typedOther = (ThriftJobStatus) other; lastComparison = Boolean.valueOf(isSetJobID()).compareTo(typedOther.isSetJobID()); if (lastComparison != 0) { return lastComparison; } if (isSetJobID()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jobID, typedOther.jobID); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetMapProgress()).compareTo(typedOther.isSetMapProgress()); if (lastComparison != 0) { return lastComparison; } if (isSetMapProgress()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mapProgress, typedOther.mapProgress); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetReduceProgress()).compareTo(typedOther.isSetReduceProgress()); if (lastComparison != 0) { return lastComparison; } if (isSetReduceProgress()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reduceProgress, typedOther.reduceProgress); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCleanupProgress()).compareTo(typedOther.isSetCleanupProgress()); if (lastComparison != 0) { return lastComparison; } if (isSetCleanupProgress()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cleanupProgress, typedOther.cleanupProgress); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetSetupProgress()).compareTo(typedOther.isSetSetupProgress()); if (lastComparison != 0) { return lastComparison; } if (isSetSetupProgress()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.setupProgress, typedOther.setupProgress); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRunState()).compareTo(typedOther.isSetRunState()); if (lastComparison != 0) { return lastComparison; } if (isSetRunState()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runState, typedOther.runState); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStartTime()).compareTo(typedOther.isSetStartTime()); if (lastComparison != 0) { return lastComparison; } if (isSetStartTime()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startTime, typedOther.startTime); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser()); if (lastComparison != 0) { return lastComparison; } if (isSetUser()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPriority()).compareTo(typedOther.isSetPriority()); if (lastComparison != 0) { return lastComparison; } if (isSetPriority()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.priority, typedOther.priority); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetSchedulingInfo()).compareTo(typedOther.isSetSchedulingInfo()); if (lastComparison != 0) { return lastComparison; } if (isSetSchedulingInfo()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schedulingInfo, typedOther.schedulingInfo); if (lastComparison != 0) { return lastComparison; } } return 0; }