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.nuxeo.ecm.core.model.PathComparator.java

/**
 * @author <a href="mailto:gracinet@nuxeo.com">Georges Racinet</a>
 */
public class PathComparator implements Comparator<Document>, Serializable {

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

From source file org.ebayopensource.turmeric.eclipse.errorlibrary.utils.ErrLibComparator.java

/**
 * The Class ErrLibComparator.
 *
 * @author smathew
 * 
 * This is being used the in the sort action in the Error View.

From source file org.beangle.commons.comparators.PropertyComparator.java

/**
 * <br>
 * 
 * @author chaostone
 */
public class PropertyComparator<T> implements Comparator<T> {

From source file gov.nih.nci.cabig.caaers.domain.comparator.AdverseEventComprator.java

/**
 * The Class AdverseEventComprator.
 */
public class AdverseEventComprator implements Comparator<AdverseEvent> {

    /** The Constant DEFAULT_ADVERSE_EVENT_COMPARATOR. */

From source file org.openmrs.util.DrugsByNameComparator.java

/**
 * The Class DrugsByNameComparator. An Util class which sorts drug names while ignoring any
 * numericals or other characters contained in the string. It will ignore all except letters a-z and
 * A-Z.
 */
public class DrugsByNameComparator implements Comparator<Drug> {

From source file org.openlegacy.utils.SimpleTypeComparator.java

@SuppressWarnings("rawtypes")
public class SimpleTypeComparator implements Comparator {

    public static SimpleTypeComparator instance = new SimpleTypeComparator();

    public static SimpleTypeComparator instance() {

From source file org.mule.providers.soap.axis.wsdl.wsrf.util.PriorityAdvisorsComparator.java

/**
 * Compare two Advisors using Priority 
 */
public class PriorityAdvisorsComparator implements Comparator {

    /* Compare Advisors  : o1 < o2 if o1 priority is >=  o2 priority. Priority number gets from .getAdvice().getPriority() method of IPriorityAdvice. if o1 or / and o2 are not IPriorityAdivece default prioirty is BasePriorityAdvice.DEFAULT_PRIORITY; 

From source file org.freedesktop.mime.FileObjectComparator.java

public final class FileObjectComparator implements Comparator<FileObject> {
    public int compare(FileObject o1, FileObject o2) {
        return o1.getName().compareTo(o2.getName());
    }
}

From source file za.co.massdosage.scrobble.NameValuePairComparator.java

public class NameValuePairComparator implements Comparator<NameValuePair> {

    @Override
    public int compare(NameValuePair pair1, NameValuePair pair2) {
        return pair1.getName().compareTo(pair2.getName());
    }

From source file com.intuit.tank.PropertyComparer.java

/**
 * PropertyComparer
 * 
 * @author dangleton
 * 
 */