List of usage examples for java.util Comparator interface-usage
From source file com.adobe.acs.commons.errorpagehandler.impl.StringLengthComparator.java
public class StringLengthComparator implements Comparator<String> { @SuppressWarnings("unused") private static final Logger log = LoggerFactory.getLogger(ErrorPageHandlerImpl.class); @Override
From source file courtscheduler.domain.MatchSlotStrengthComparator.java
/**
* Created with IntelliJ IDEA.
* User: Charles
* Date: 10/3/13
* Time: 3:50 PM
* To change this template use File | Settings | File Templates.
From source file org.openconcerto.utils.TransformedComparator.java
/**
* A comparator that transforms before comparing.
*
* @author Sylvain
*
* @param <E> the type of the objects before being transformed.
From source file org.optaplanner.examples.machinereassignment.domain.solver.MrProcessAssignmentDifficultyComparator.java
public class MrProcessAssignmentDifficultyComparator implements Comparator<MrProcessAssignment>, Serializable { public int compare(MrProcessAssignment a, MrProcessAssignment b) { return new CompareToBuilder() .append(a.getProcess().getUsageMultiplicand(), b.getProcess().getUsageMultiplicand()) .append(a.getId(), b.getId()).toComparison();
From source file org.sakaiproject.gradebookng.business.FirstNameComparatorGbUser.java
/** * Comparator class for sorting a list of GbUser by first name. * Secondary sort is on last name to maintain consistent order for those with the same first name. */ public class FirstNameComparatorGbUser implements Comparator<GbUser> {
From source file net.ontopia.topicmaps.nav.utils.comparators.TopicMapReferenceComparator.java
/** * INTERNAL: A Comparator for ordering TopicMapReferences lexically. It * compares the titles of references case-insensitively. */ public class TopicMapReferenceComparator implements Comparator<TopicMapReferenceIF> {
From source file org.sakaiproject.gradebookng.business.CategorySubtotalComparator.java
/**
* Comparator class for sorting a category by the subtotals
*
* Note that this must have the categoryId set into it so we can extract the appropriate grade entry from the map that each student has.
*
*/
From source file pl.otros.vfs.browser.table.FileNameWithTypeComparator.java
public class FileNameWithTypeComparator implements Comparator<FileNameWithType> { private SortOrder sortOrder = SortOrder.ASCENDING; @Override public int compare(FileNameWithType o1, FileNameWithType o2) { return compareTo(o1, o2);
From source file org.drools.planner.examples.machinereassignment.domain.solver.MrProcessAssignmentDifficultyComparator.java
public class MrProcessAssignmentDifficultyComparator implements Comparator<MrProcessAssignment>, Serializable { public int compare(MrProcessAssignment a, MrProcessAssignment b) { return new CompareToBuilder() .append(a.getProcess().getUsageMultiplicand(), b.getProcess().getUsageMultiplicand()) .append(a.getId(), b.getId()).toComparison();
From source file org.optaplanner.examples.taskassigning.domain.solver.TaskDifficultyComparator.java
public class TaskDifficultyComparator implements Comparator<Task>, Serializable { @Override public int compare(Task a, Task b) { return new CompareToBuilder().append(a.getPriority(), b.getPriority()) .append(a.getTaskType().getRequiredSkillList().size(),