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 org.optaplanner.mes.common.domain.PersistableIdComparator.java

@SuppressWarnings("serial")
public class PersistableIdComparator implements Comparator<AbstractPersistable>, Serializable {

    public int compare(AbstractPersistable a, AbstractPersistable b) {
        return new CompareToBuilder().append(a.getId(), b.getId()).toComparison();
    }

From source file com.employee.scheduler.common.domain.PersistableIdComparator.java

public class PersistableIdComparator implements Comparator<AbstractPersistable>, Serializable {

    public int compare(AbstractPersistable a, AbstractPersistable b) {
        return new CompareToBuilder().append(a.getId(), b.getId()).toComparison();
    }

From source file com.sinosoft.one.data.jade.statement.InterpreterComparator.java

/**
 * 
 * @author qieqie
 * 
 */
public class InterpreterComparator implements Comparator<Interpreter> {

From source file org.openmrs.module.reporting.common.BeanPropertyComparator.java

/**
 * A comparator that can compare 2 objects based on a particular nested property value
 */
@SuppressWarnings("rawtypes")
public class BeanPropertyComparator implements Comparator {

From source file org.openmrs.module.tracdataquality.utils.PatientSortByName.java

/**
 *
 */
public class PatientSortByName implements Comparator<Patient> {

    protected final Log log = LogFactory.getLog(getClass());

From source file org.optaplanner.examples.common.domain.PersistableIdComparator.java

public class PersistableIdComparator implements Comparator<AbstractPersistable>, Serializable {

    public int compare(AbstractPersistable a, AbstractPersistable b) {
        return new CompareToBuilder().append(a.getId(), b.getId()).toComparison();
    }

From source file poisondog.commons.vfs.FileComparator.java

/**
 * @author Adam Huang <poisondog@gmail.com>
 */
public class FileComparator implements Comparator<FileObject> {

    public int compare(FileObject obj1, FileObject obj2) {

From source file org.btrg.df.betterologist.common.domain.PersistableIdComparator.java

public class PersistableIdComparator implements Comparator<AbstractPersistable>, Serializable {

    public int compare(AbstractPersistable a, AbstractPersistable b) {
        return new CompareToBuilder().append(a.getId(), b.getId()).toComparison();
    }

From source file tds.tdsadmin.model.LazySorter.java

public class LazySorter implements Comparator<TestOpportunity> {

    private static final Logger _logger = LoggerFactory.getLogger(LazySorter.class);

    private String sortField;

From source file org.drools.planner.examples.common.domain.PersistableIdComparator.java

public class PersistableIdComparator implements Comparator<AbstractPersistable>, Serializable {

    public int compare(AbstractPersistable a, AbstractPersistable b) {
        return new CompareToBuilder().append(a.getId(), b.getId()).toComparison();
    }