List of usage examples for java.util Comparator interface-usage
From source file piecework.common.DataFilterFacetComparator.java
/** * @author James Renfro */ public class DataFilterFacetComparator implements Comparator<Map<String, Object>> { private final String name;
From source file ca.appbox.monitoring.jmx.jmxbox.commons.context.parser.CommandLineOptionsComparator.java
class CommandLineOptionsComparator implements Comparator<Option> { private static Map<String, Integer> displayOrder = new HashMap<String, Integer>(); public int compare(Option option1, Option option2) { return displayOrder.get(option1.getOpt()).compareTo(displayOrder.get(option2.getOpt()));
From source file org.jboss.qa.brms.performance.examples.cloudbalancing.domain.solver.CloudProcessDifficultyComparator.java
public class CloudProcessDifficultyComparator implements Comparator<CloudProcess>, Serializable { @Override public int compare(CloudProcess a, CloudProcess b) { return new CompareToBuilder().append(a.getRequiredMultiplicand(), b.getRequiredMultiplicand()) .append(a.getId(), b.getId()).toComparison();
From source file org.optaplanner.examples.scrabble.domain.solver.ScrabbleWordAssignmentDifficultyComparator.java
public class ScrabbleWordAssignmentDifficultyComparator implements Comparator<ScrabbleWordAssignment>, Serializable { @Override public int compare(ScrabbleWordAssignment a, ScrabbleWordAssignment b) { return new CompareToBuilder().append(a.getWord().length(), b.getWord().length())
From source file org.drools.planner.core.localsearch.decider.forager.AcceptedMoveScopeComparator.java
public class AcceptedMoveScopeComparator implements Comparator<MoveScope> { private final Comparator<? extends Score> deciderScoreComparator; public AcceptedMoveScopeComparator(Comparator<? extends Score> deciderScoreComparator) { this.deciderScoreComparator = deciderScoreComparator;
From source file org.jboss.qa.brms.performance.examples.cloudbalancing.domain.solver.CloudComputerStrengthComparator.java
public class CloudComputerStrengthComparator implements Comparator<CloudComputer>, Serializable { @Override public int compare(CloudComputer a, CloudComputer b) { return new CompareToBuilder().append(a.getMultiplicand(), b.getMultiplicand()) .append(b.getCost(), a.getCost()) // Descending (but this is debatable)
From source file org.jboss.qa.brms.performance.examples.vehiclerouting.domain.solver.LatitudeCustomerDifficultyComparator.java
/** * On large datasets, the constructed solution looks like a zebra crossing. */ public class LatitudeCustomerDifficultyComparator implements Comparator<Customer>, Serializable { @Override
From source file org.optaplanner.examples.cloudbalancing.optional.domain.CloudProcessDifficultyComparator.java
public class CloudProcessDifficultyComparator implements Comparator<CloudProcess>, Serializable { @Override public int compare(CloudProcess a, CloudProcess b) { return new CompareToBuilder().append(a.getRequiredMultiplicand(), b.getRequiredMultiplicand()) .append(a.getId(), b.getId()).toComparison();
From source file com.sunchenbin.store.feilong.core.util.comparator.RegexGroupNumberComparator.java
/**
* ? number group .
*
* <p style="color:red">
* ????group ?int
* </p>
From source file org.kuali.test.comparators.TestExecutionParameterComparator.java
/** * * @author rbtucker */ public class TestExecutionParameterComparator implements Comparator<CheckpointProperty> { @Override