本文整理汇总了Java中org.apache.commons.collections.comparators.ComparatorChain.compare方法的典型用法代码示例。如果您正苦于以下问题:Java ComparatorChain.compare方法的具体用法?Java ComparatorChain.compare怎么用?Java ComparatorChain.compare使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.commons.collections.comparators.ComparatorChain
的用法示例。
在下文中一共展示了ComparatorChain.compare方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: compare
import org.apache.commons.collections.comparators.ComparatorChain; //导入方法依赖的package包/类
@Override
public int compare(final IndividualCandidacyPersonalDetails o1, final IndividualCandidacyPersonalDetails o2) {
final ComparatorChain comparatorChain = new ComparatorChain();
comparatorChain.addComparator(COMPARATOR_BY_NAME);
comparatorChain.addComparator(DomainObjectUtil.COMPARATOR_BY_ID);
return comparatorChain.compare(o1, o2);
}
示例2: compare
import org.apache.commons.collections.comparators.ComparatorChain; //导入方法依赖的package包/类
@Override
final public int compare(ICurriculumEntry o1, ICurriculumEntry o2) {
final ComparatorChain comparatorChain = new ComparatorChain();
comparatorChain.addComparator(ICurriculumEntry.COMPARATOR_BY_EXECUTION_PERIOD);
comparatorChain.addComparator(ICurriculumEntry.COMPARATOR_BY_ID);
return comparatorChain.compare(o1, o2);
}
示例3: compare
import org.apache.commons.collections.comparators.ComparatorChain; //导入方法依赖的package包/类
@Override
final public int compare(ConclusionProcessVersion o1, ConclusionProcessVersion o2) {
final ComparatorChain chain = new ComparatorChain();
chain.addComparator(ConclusionProcessVersion.COMPARATOR_BY_CREATION_DATE_TIME);
chain.addComparator(DomainObjectUtil.COMPARATOR_BY_ID);
return chain.compare(o1, o2);
}
示例4: compare
import org.apache.commons.collections.comparators.ComparatorChain; //导入方法依赖的package包/类
@Override
final public int compare(final CycleCurriculumGroup o1, final CycleCurriculumGroup o2) {
final ComparatorChain comparatorChain = new ComparatorChain();
comparatorChain.addComparator(CycleCurriculumGroup.COMPARATOR_BY_CYCLE_TYPE);
comparatorChain.addComparator(DomainObjectUtil.COMPARATOR_BY_ID);
return comparatorChain.compare(o1, o2);
}
示例5: compare
import org.apache.commons.collections.comparators.ComparatorChain; //导入方法依赖的package包/类
@Override
public int compare(ExternalEnrolment o1, ExternalEnrolment o2) {
final ComparatorChain comparatorChain = new ComparatorChain();
comparatorChain.addComparator(ExternalEnrolment.COMPARATOR_BY_EXECUTION_PERIOD_AND_ID);
comparatorChain.addComparator(ExternalEnrolment.COMPARATOR_BY_APPROVEMENT_DATE);
return comparatorChain.compare(o1, o2);
}
示例6: compare
import org.apache.commons.collections.comparators.ComparatorChain; //导入方法依赖的package包/类
@Override
public int compare(AcademicServiceRequest o1, AcademicServiceRequest o2) {
final ComparatorChain comparatorChain = new ComparatorChain();
comparatorChain.addComparator(EXECUTION_YEAR_COMPARATOR);
comparatorChain.addComparator(DomainObjectUtil.COMPARATOR_BY_ID);
return comparatorChain.compare(o1, o2);
}
示例7: compare
import org.apache.commons.collections.comparators.ComparatorChain; //导入方法依赖的package包/类
@Override
final public int compare(MarkSheet o1, MarkSheet o2) {
final ComparatorChain comparatorChain = new ComparatorChain();
comparatorChain.addComparator(MarkSheet.COMPARATOR_BY_EVALUATION_DATE);
comparatorChain.addComparator(DomainObjectUtil.COMPARATOR_BY_ID);
return comparatorChain.compare(o1, o2);
}
示例8: compare
import org.apache.commons.collections.comparators.ComparatorChain; //导入方法依赖的package包/类
@Override
public int compare(final Party o1, final Party o2) {
final ComparatorChain comparatorChain = new ComparatorChain();
comparatorChain.addComparator(Party.COMPARATOR_BY_NAME);
comparatorChain.addComparator(DomainObjectUtil.COMPARATOR_BY_ID);
return comparatorChain.compare(o1, o2);
}
示例9: compare
import org.apache.commons.collections.comparators.ComparatorChain; //导入方法依赖的package包/类
@Override
public int compare(ExecutionDegree o1, ExecutionDegree o2) {
final ComparatorChain comparatorChain = new ComparatorChain();
comparatorChain.addComparator(EXECUTION_DEGREE_COMPARATORY_BY_DEGREE_TYPE_AND_NAME);
comparatorChain.addComparator(EXECUTION_DEGREE_COMPARATORY_BY_YEAR);
return comparatorChain.compare(o1, o2);
}