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.vfny.geoserver.global.FeatureTypeInfoTitleComparator.java

/**
 * A comparator used to sort {@link FeatureTypeInfo} objects by title 
 * (useful for capabilities output, for example)
 * @author Andrea Aime - TOPP
 */
public class FeatureTypeInfoTitleComparator implements Comparator {

From source file org.marketcetera.core.position.impl.PositionKeyComparator.java

/**
 * Comparator for PositionKeys that imposes a default ordering of the data.
 * 
 * @author <a href="mailto:will@marketcetera.com">Will Horn</a>
 * @version $Id$
 * @since 2.0.0

From source file com.microsoft.tfs.core.util.ServerURIComparator.java

/**
 * <p>
 * Compares URIs for TFS servers. The comparison is a case-insensitive string
 * match on partially normalized URI strings for consistency with TFS connection
 * behavior in other clients (Visual Studio).
 * </p>

From source file com.smi.travel.monitor.BookingFlightComparator.java

/**
 *
 * @author wleenavo
 */
public class BookingFlightComparator implements Comparator<BookingFlight> {

From source file com.clican.pluto.cms.core.comparator.CreateTimeComparator.java

public class CreateTimeComparator<T> extends BaseComparator<T> implements Comparator<T> {

    private final static Log log = LogFactory.getLog(CreateTimeComparator.class);

    public int compare(T o1, T o2) {
        try {

From source file business.controllers.LabRequestComparator.java

@Component
public class LabRequestComparator implements Comparator<LabRequestRepresentation> {

    @Override
    public int compare(LabRequestRepresentation arg0, LabRequestRepresentation arg1) {
        if (arg0 == arg1) {

From source file ProductQuality.java

class MessageComparator implements Comparator<Product> {
    public int compare(Product msg1, Product msg2) {
        return msg2.priority.compareTo(msg1.priority);
    }
}

From source file business.controllers.RequestListRepresentationComparator.java

/**
 * Sort requests by submission date.
 */
@Component
public class RequestListRepresentationComparator implements Comparator<RequestListElement> {

From source file structuredoutputcbr.adaptation.ExerciseComparatorDisjunction.java

/**
 * Class that compare two exercises taking into account the disjunction, in terms of muscles, with a previously given one
 * @author Joan T. Matamalas Llodr <jtmatamalas@gmail.com>
 */
public class ExerciseComparatorDisjunction implements Comparator {

From source file business.controllers.RequestListRepresentationStartTimeComparator.java

/**
 * Sort requests by creation date.
 */
@Component
public class RequestListRepresentationStartTimeComparator implements Comparator<RequestListRepresentation> {