public int compareTo(TArticle other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; TArticle typedOther = (TArticle) other; lastComparison = Boolean.valueOf(isSetTitle()).compareTo(typedOther.isSetTitle()); if (lastComparison != 0) { return lastComparison; } if (isSetTitle()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.title, typedOther.title); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetContent()).compareTo(typedOther.isSetContent()); if (lastComparison != 0) { return lastComparison; } if (isSetContent()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.content, typedOther.content); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetSummary()).compareTo(typedOther.isSetSummary()); if (lastComparison != 0) { return lastComparison; } if (isSetSummary()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.summary, typedOther.summary); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPublishTime()).compareTo(typedOther.isSetPublishTime()); if (lastComparison != 0) { return lastComparison; } if (isSetPublishTime()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.publishTime, typedOther.publishTime); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOriginalUrl()).compareTo(typedOther.isSetOriginalUrl()); if (lastComparison != 0) { return lastComparison; } if (isSetOriginalUrl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.originalUrl, typedOther.originalUrl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetArticleFrom()).compareTo(typedOther.isSetArticleFrom()); if (lastComparison != 0) { return lastComparison; } if (isSetArticleFrom()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.articleFrom, typedOther.articleFrom); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetArticleType()).compareTo(typedOther.isSetArticleType()); if (lastComparison != 0) { return lastComparison; } if (isSetArticleType()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.articleType, typedOther.articleType); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTopDay()).compareTo(typedOther.isSetTopDay()); if (lastComparison != 0) { return lastComparison; } if (isSetTopDay()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.topDay, typedOther.topDay); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetImageItems()).compareTo(typedOther.isSetImageItems()); if (lastComparison != 0) { return lastComparison; } if (isSetImageItems()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageItems, typedOther.imageItems); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetArticleUuid()).compareTo(typedOther.isSetArticleUuid()); if (lastComparison != 0) { return lastComparison; } if (isSetArticleUuid()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.articleUuid, typedOther.articleUuid); if (lastComparison != 0) { return lastComparison; } } return 0; }