List of usage examples for java.util Comparator interface-usage
From source file org.optaplanner.benchmark.impl.ranking.TotalScoreSolverRankingComparator.java
/**
* This ranking {@link Comparator} orders a {@link SolverBenchmarkResult} by its total {@link Score}.
* It maximize the overall score, so it minimizes the overall cost if all {@link Solution}s would be executed.
* <p/>
* When the inputSolutions differ greatly in size or difficulty, this often results in a big difference in
* {@link Score} magnitude between each {@link Solution}. For example: score 10 for dataset A versus 1000 for dataset B.
From source file org.optaplanner.benchmark.impl.ranking.WorstScoreSolverRankingComparator.java
/** * This ranking {@link Comparator} orders a {@link SolverBenchmarkResult} by its worst {@link Score}. * It minimizes the worst case scenario. */ public class WorstScoreSolverRankingComparator implements Comparator<SolverBenchmarkResult>, Serializable {
From source file org.optaplanner.examples.pas.domain.solver.BedStrengthComparator.java
public class BedStrengthComparator implements Comparator<Bed>, Serializable { public int compare(Bed a, Bed b) { if (a == null) { if (b == null) { return 0;
From source file org.artifactory.api.build.BuildNumberComparator.java
/** * A custom build number comparator. If both build number are exclusively numeric, they will be compared as Longs; * otherwise they will be compared as strings. */ public class BuildNumberComparator implements Comparator<BuildRun>, Serializable {
From source file org.jbpm.formModeler.service.bb.mvc.taglib.formatter.ForComparator.java
public class ForComparator implements Comparator { private static transient Logger log = LoggerFactory.getLogger(ForComparator.class); private List sortTokens = new ArrayList(); public ForComparator(String sortProperties) { StringTokenizer stk = new StringTokenizer(sortProperties);
From source file com.tassadar.multirommgr.installfragment.UbuntuImage.java
public class UbuntuImage implements Comparator<UbuntuFile> { public UbuntuImage(JSONObject img) throws JSONException { version = img.getInt("version"); description = img.getString("description"); JSONArray f = img.getJSONArray("files");
From source file org.ngrinder.model.Tag.java
/**
* Tag class for categorization of {@link PerfTest}.
*
* @author JunHo Yoon
* @since 3.0
*/
From source file edu.utah.further.core.api.collections.SortedSetComparator.java
/**
* Compares sorted sets that are assumed to have natural-ordering comparator by
* lexicographic ordering.
* <p>
* -----------------------------------------------------------------------------------<br>
* (c) Oren E. Livne, Ph.D., University of Utah<br>
From source file org.eclairjs.nashorn.JSComparator.java
public class JSComparator implements java.util.Comparator, java.io.Serializable { private String func = null; private Object args[] = null; private String functionName = null; private Object fn = null;
From source file org.kuali.coeus.s2sgen.impl.generate.support.ProposalPersonComparator.java
/** * Used to order <code>{@link ProposalPersonContract}</code> instances by the role. */ public class ProposalPersonComparator implements Comparator<ProposalPersonContract> { private static final Logger LOG = LoggerFactory.getLogger(ProposalPersonComparator.class);