Example usage for java.util Comparator interface-usage

List of usage examples for java.util Comparator interface-usage

Introduction

In this page you can find the example usage for java.util Comparator interface-usage.

Usage

From source file pl.otros.vfs.browser.table.FileObjectComparator.java

public class FileObjectComparator implements Comparator<FileObject> {

    private static final Logger LOGGER = LoggerFactory.getLogger(FileObjectComparator.class);
    private FileNameWithTypeComparator fileNameWithTypeComparator = new FileNameWithTypeComparator();

    @Override

From source file org.optaplanner.benchmark.impl.ranking.WorstScoreSolverBenchmarkRankingComparator.java

/**
 * This ranking {@link Comparator} orders a {@link SolverBenchmark} by its worst {@link Score}.
 * It minimizes the worst case scenario.
 */
public class WorstScoreSolverBenchmarkRankingComparator implements Comparator<SolverBenchmark>, Serializable {

From source file org.jasig.portlet.calendar.CalendarConfigurationByNameComparator.java

/**
 * @author Jen Bourey, jbourey@unicon.net
 * @version $Revision$
 */
public class CalendarConfigurationByNameComparator implements Comparator<CalendarConfiguration> {

From source file org.drools.planner.benchmark.core.ranking.WorstScoreSolverBenchmarkRankingComparator.java

/**
 * This ranking {@link Comparator} orders a {@link SolverBenchmark} by its worst {@link Score}.
 * It minimizes the worst case scenario.
 */
public class WorstScoreSolverBenchmarkRankingComparator implements Comparator<SolverBenchmark>, Serializable {

From source file org.optaplanner.benchmark.impl.ranking.TotalScoreSolverBenchmarkRankingComparator.java

/**
 * This ranking {@link Comparator} orders a {@link SolverBenchmark} 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.arrow.runtime.execution.listener.BpmnNodeListenerComparator.java

/**
 * {@link Comparator} implementation for bpmn node listener instances. The
 * comparator is aware of the {@link Infrastructure} annotation which is used to
 * priors infrastructure listeners in order to sort them to the begin of the
 * bpmn node listener list.
 * 

From source file org.drools.planner.benchmark.core.ranking.TotalScoreSolverBenchmarkRankingComparator.java

/**
 * This ranking {@link Comparator} orders a {@link SolverBenchmark} 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.alfresco.integrations.google.docs.utils.FileRevisionComparator.java

/**
 * @author Jared Ottley <jared.ottley@alfresco.com>
 */
public class FileRevisionComparator implements Comparator<FileRevision> {
    @Override
    public int compare(FileRevision entry1, FileRevision entry2) {

From source file de.topobyte.utilities.apache.commons.cli.DefaultOptionComparator.java

/**
 * An {@link Option} comparator that mimics the behavior of the default
 * comparator used by the {@link HelpFormatter}.
 */
public class DefaultOptionComparator implements Comparator<Option> {

From source file com.cyclopsgroup.waterview.utils.BeanPropertyComparator.java

/**
 * @author <a href="mailto:jiaqi.guo@gmail.com">Jiaqi Guo</a>
 * 
 * Comparator based on a property
 */
public class BeanPropertyComparator implements Comparator {