public int compareTo(KsDef other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; KsDef typedOther = (KsDef) other; lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStrategy_class()).compareTo(typedOther.isSetStrategy_class()); if (lastComparison != 0) { return lastComparison; } if (isSetStrategy_class()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.strategy_class, typedOther.strategy_class); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStrategy_options()).compareTo(typedOther.isSetStrategy_options()); if (lastComparison != 0) { return lastComparison; } if (isSetStrategy_options()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo( this.strategy_options, typedOther.strategy_options); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetReplication_factor()).compareTo(typedOther.isSetReplication_factor()); if (lastComparison != 0) { return lastComparison; } if (isSetReplication_factor()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo( this.replication_factor, typedOther.replication_factor); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCf_defs()).compareTo(typedOther.isSetCf_defs()); if (lastComparison != 0) { return lastComparison; } if (isSetCf_defs()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cf_defs, typedOther.cf_defs); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetDurable_writes()).compareTo(typedOther.isSetDurable_writes()); if (lastComparison != 0) { return lastComparison; } if (isSetDurable_writes()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.durable_writes, typedOther.durable_writes); if (lastComparison != 0) { return lastComparison; } } return 0; }