本文整理汇总了Java中org.apache.commons.lang.builder.CompareToBuilder.appendSuper方法的典型用法代码示例。如果您正苦于以下问题:Java CompareToBuilder.appendSuper方法的具体用法?Java CompareToBuilder.appendSuper怎么用?Java CompareToBuilder.appendSuper使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.commons.lang.builder.CompareToBuilder
的用法示例。
在下文中一共展示了CompareToBuilder.appendSuper方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: compareTo
import org.apache.commons.lang.builder.CompareToBuilder; //导入方法依赖的package包/类
public int compareTo(Patent o) {
final Patent other = o;
final CompareToBuilder builder = new CompareToBuilder();
builder.appendSuper(super.compareTo(other));
builder.append(this.patentOffice, other.patentOffice);
builder.append(this.patentNumber, other.patentNumber);
builder.append(this.patentType, other.patentType);
builder.append(this.sequenceNumber, other.sequenceNumber);
builder.append(this.day, other.day);
String[] thisApplicants = this.applicants.toArray(new String[this.applicants.size()]);
String[] otherApplicants = other.applicants.toArray(new String[this.applicants.size()]);
builder.append(thisApplicants, otherApplicants);
return builder.toComparison();
}
示例2: compareTo
import org.apache.commons.lang.builder.CompareToBuilder; //导入方法依赖的package包/类
public int compareTo(Thesis o) {
final Thesis other = o;
final CompareToBuilder builder = new CompareToBuilder();
builder.appendSuper(super.compareTo(other));
builder.append(this.institute, other.institute);
builder.append(this.year, other.year);
return builder.toComparison();
}
示例3: compareTo
import org.apache.commons.lang.builder.CompareToBuilder; //导入方法依赖的package包/类
public int compareTo(Article o) {
final Article other = (Article) o;
final CompareToBuilder builder = new CompareToBuilder();
builder.appendSuper(super.compareTo(other));
builder.append(this.firstPage, other.firstPage);
builder.append(this.lastPage, other.lastPage);
builder.append(this.volume, other.volume);
builder.append(this.issue, other.issue);
builder.append(this.journal, other.journal);
builder.append(this.year, other.year);
return builder.toComparison();
}
示例4: compareTo
import org.apache.commons.lang.builder.CompareToBuilder; //导入方法依赖的package包/类
public int compareTo(Book o) {
final Book other = (Book) o;
final CompareToBuilder builder = new CompareToBuilder();
builder.appendSuper(super.compareTo(other));
builder.append(this.bookTitle, other.bookTitle);
builder.append(this.firstPage, other.firstPage);
builder.append(this.lastPage, other.lastPage);
builder.append(this.publisher, other.publisher);
builder.append(this.year, other.year);
Person[] thisEditors = this.editors.toArray(new Person[this.editors.size()]);
Person[] otherEditors = other.editors.toArray(new Person[other.editors.size()]);
builder.append(thisEditors, otherEditors);
return builder.toComparison();
}
示例5: compareTo
import org.apache.commons.lang.builder.CompareToBuilder; //导入方法依赖的package包/类
public int compareTo(Submission o) {
final Submission other = o;
final CompareToBuilder builder = new CompareToBuilder();
builder.appendSuper(super.compareTo(other));
builder.append(this.day, other.day);
builder.append(this.submitterAddress, other.submitterAddress);
return builder.toComparison();
}
示例6: compareTo
import org.apache.commons.lang.builder.CompareToBuilder; //导入方法依赖的package包/类
public int compareTo(ElectronicReference o) {
final ElectronicReference other = (ElectronicReference) o;
final CompareToBuilder builder = new CompareToBuilder();
builder.appendSuper(super.compareTo(other));
builder.append(this.text, other.text);
return builder.toComparison();
}
示例7: compareTo
import org.apache.commons.lang.builder.CompareToBuilder; //导入方法依赖的package包/类
public int compareTo(Unpublished o) {
final Unpublished other = o;
final CompareToBuilder builder = new CompareToBuilder();
builder.appendSuper(super.compareTo(other));
return builder.toComparison();
}