Java Code Examples for org.apache.commons.collections.comparators.ComparatorChain#compare()
The following examples show how to use
org.apache.commons.collections.comparators.ComparatorChain#compare() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IndividualCandidacyPersonalDetails.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
@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); }
Example 2
Source File: ICurriculumEntry.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
@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); }
Example 3
Source File: ICurriculumEntry.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
@Override final public int compare(ICurriculumEntry o1, ICurriculumEntry o2) { final ComparatorChain comparatorChain = new ComparatorChain(); comparatorChain.addComparator(ICurriculumEntry.COMPARATOR_BY_EXECUTION_PERIOD_AND_NAME); comparatorChain.addComparator(ICurriculumEntry.COMPARATOR_BY_ID); return comparatorChain.compare(o1, o2); }
Example 4
Source File: ICurriculumEntry.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
@Override final public int compare(ICurriculumEntry o1, ICurriculumEntry o2) { final ComparatorChain comparatorChain = new ComparatorChain(); comparatorChain.addComparator(ICurriculumEntry.COMPARATOR_BY_REVERSE_EXECUTION_PERIOD_AND_NAME); comparatorChain.addComparator(ICurriculumEntry.COMPARATOR_BY_ID); return comparatorChain.compare(o1, o2); }
Example 5
Source File: ICurriculumEntry.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
@Override final public int compare(ICurriculumEntry o1, ICurriculumEntry o2) { final ComparatorChain comparatorChain = new ComparatorChain(); comparatorChain.addComparator(ICurriculumEntry.COMPARATOR_BY_EXECUTION_YEAR_AND_NAME); comparatorChain.addComparator(ICurriculumEntry.COMPARATOR_BY_ID); return comparatorChain.compare(o1, o2); }
Example 6
Source File: ConclusionProcessVersion.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
@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); }
Example 7
Source File: CycleCurriculumGroup.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
@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); }
Example 8
Source File: ExternalEnrolment.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
@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); }
Example 9
Source File: MarkSheet.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
@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); }
Example 10
Source File: MarkSheet.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
@Override final public int compare(MarkSheet o1, MarkSheet o2) { final ComparatorChain comparatorChain = new ComparatorChain(); comparatorChain.addComparator(MarkSheet.COMPARATOR_BY_EVALUATION_DATE); comparatorChain.addComparator(MarkSheet.COMPARATOR_BY_CREATION_DATE); comparatorChain.addComparator(DomainObjectUtil.COMPARATOR_BY_ID); return comparatorChain.compare(o1, o2); }
Example 11
Source File: Party.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
@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); }
Example 12
Source File: Party.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
@Override public int compare(final Party o1, final Party o2) { final ComparatorChain comparatorChain = new ComparatorChain(); comparatorChain.addComparator(Party.COMPARATOR_BY_SUBPARTY); comparatorChain.addComparator(Party.COMPARATOR_BY_NAME); comparatorChain.addComparator(DomainObjectUtil.COMPARATOR_BY_ID); return comparatorChain.compare(o1, o2); }
Example 13
Source File: ExecutionDegree.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 5 votes |
@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); }