当前位置: 首页>>代码示例>>Java>>正文


Java CompareToBuilder.appendSuper方法代码示例

本文整理汇总了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();
}
 
开发者ID:enasequence,项目名称:sequencetools,代码行数:15,代码来源:Patent.java

示例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();
}
 
开发者ID:enasequence,项目名称:sequencetools,代码行数:9,代码来源:Thesis.java

示例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();
}
 
开发者ID:enasequence,项目名称:sequencetools,代码行数:13,代码来源:Article.java

示例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();
}
 
开发者ID:enasequence,项目名称:sequencetools,代码行数:15,代码来源:Book.java

示例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();
}
 
开发者ID:enasequence,项目名称:sequencetools,代码行数:9,代码来源:Submission.java

示例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();
}
 
开发者ID:enasequence,项目名称:sequencetools,代码行数:8,代码来源:ElectronicReference.java

示例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();
}
 
开发者ID:enasequence,项目名称:sequencetools,代码行数:7,代码来源:Unpublished.java


注:本文中的org.apache.commons.lang.builder.CompareToBuilder.appendSuper方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。