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 xbdd.webapp.resource.feature.DBObjectComparator.java

/**
 * Matcher that compares two DBObjects by the number of times they match a set of regular expressions
 */
public class DBObjectComparator implements Comparator<DBObject> {

    final private ConcurrentMap<DBObject, Integer> cachedCounts = new ConcurrentHashMap<>();

From source file com.sun.identity.admin.model.TableColumnComparator.java

public abstract class TableColumnComparator implements Serializable, Comparator {

    protected static final NullComparator NULL_COMPARATOR = new NullComparator();

    private boolean ascending;

From source file org.openmrs.module.populatingactivelists.impl.ActiveListComparator.java

/**
 * This class is a Comparator used to compare two active list items. 
 * 
 * This is used when migrating observations from obs table to active list tables 
 * 
 *

From source file org.kuali.kfs.gl.batch.ScrubberSortComparator.java

public class ScrubberSortComparator implements Comparator<String> {

    OriginEntryFieldUtil oefu = new OriginEntryFieldUtil();
    Map<String, Integer> pMap = oefu.getFieldBeginningPositionMap();
    int originEntryRecordLength = GeneralLedgerConstants.getSpaceAllOriginEntryFields().length();

From source file org.betaconceptframework.astroboa.commons.comparator.CmsPropertyDefinitionLocalizedLabelComparator.java

/**
 * Compare Property Definitions by their localized label.
 * 
 * @author Gregory Chomatas (gchomatas@betaconcept.com)
 * @author Savvas Triantafyllou (striantafyllou@betaconcept.com)
 * 

From source file org.gwtportlets.portlet.smartgwt.server.SmartComparator.java

/**
 * Implements a comparator for a class which implements a Field Comparable.
 * @param <T> The class which is to be compared.
 * @author Carl Crous
 */
public class SmartComparator<T> implements Comparator<T> {

From source file org.apache.qpid.disttest.results.formatting.CSVOrderParticipantResultComparator.java

public class CSVOrderParticipantResultComparator implements Comparator<ParticipantResult> {
    // TODO yuk
    private static final Map<Class<? extends ParticipantResult>, Integer> TYPE_CODES = new HashMap<Class<? extends ParticipantResult>, Integer>();
    static {
        TYPE_CODES.put(ProducerParticipantResult.class, 0);
        TYPE_CODES.put(ConsumerParticipantResult.class, 1);

From source file org.openehealth.ipf.platform.camel.core.config.CustomRouteBuilderConfigurer.java

/**
 * 
 * Configurer used to autowire all classes extending
 * the {@link CustomRouteBuilder} abstract class.
 * 
 * @author Boris Stanojevic

From source file com.omertron.themoviedbapi.model.comparator.PersonCreditDateComparator.java

/**
 * Compare two PersonCredits by date
 *
 * @author stuart.boston
 */
public class PersonCreditDateComparator implements Comparator<PersonCredit>, Serializable {

From source file org.pentaho.metadata.query.model.util.BooleanComparator.java

public class BooleanComparator implements Comparator<Object> {

    private static BooleanComparator _instance = new BooleanComparator();

    private BooleanComparator() {
    }