@Override public int compareTo(TUserDefinedTypeEntry other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTypeClassName()).compareTo(other.isSetTypeClassName()); if (lastComparison != 0) { return lastComparison; } if (isSetTypeClassName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeClassName, other.typeClassName); if (lastComparison != 0) { return lastComparison; } } return 0; }