@Override public int compareTo(LineageCommand other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCommandType()).compareTo(other.isSetCommandType()); if (lastComparison != 0) { return lastComparison; } if (isSetCommandType()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commandType, other.commandType); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCheckpointFiles()).compareTo(other.isSetCheckpointFiles()); if (lastComparison != 0) { return lastComparison; } if (isSetCheckpointFiles()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.checkpointFiles, other.checkpointFiles); if (lastComparison != 0) { return lastComparison; } } return 0; }