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


Java ComparatorChain.compare方法代码示例

本文整理汇总了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);
}
 
开发者ID:FenixEdu,项目名称:fenixedu-academic,代码行数:9,代码来源:IndividualCandidacyPersonalDetails.java

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

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

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

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

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

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

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

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


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