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 com.google.gerrit.server.util.MostSpecificComparator.java

/**
 * Order the Ref Pattern by the most specific. This sort is done by:
 * <ul>
 * <li>1 - The minor value of Levenshtein string distance between the branch
 * name and the regex string shortest example. A shorter distance is a more
 * specific match.

From source file org.duracloud.snapshot.db.model.Snapshot.java

/**
 * @author Daniel Bernstein
 *         Date: Jul 21, 2014
 */
@Entity
@Table(name = "snapshot", uniqueConstraints = { @UniqueConstraint(columnNames = { "name" }) })

From source file edu.usu.sdl.openstorefront.sort.AttributeCodeArchViewComparator.java

/**
 * Compares Architecture codes
 *
 * @author dshurtleff
 * @param <T>
 */

From source file org.climprpiano.midisheetmusic.FileUri.java

/**
 * @class FileUri Represents a reference to a file. The file could be either in the /assets directory, the internal storage, or the external storage.
 */
public class FileUri implements Comparator<FileUri> {
    private Uri uri;
    /** The URI path to the file */

From source file org.talend.commons.utils.data.sort.MultiplePropertiesBeanComparator.java

/**
 * @author amaumont <br/> $Id: MultiplePropertiesBeanComparator.java 33 2006-10-02 15:04:29 +0000 (lun., 02 oct. 2006)
 * amaumont $
 */
public class MultiplePropertiesBeanComparator implements Comparator {

From source file org.kuali.kfs.gl.web.util.OriginEntryFileComparator.java

/**
 * An implementation of Comparator which compares origin entry Files by their name prefix and then by last modified date
 */
public class OriginEntryFileComparator implements Comparator<File> {

    public int compare(File o1, File o2) {

From source file edu.usu.sdl.openstorefront.core.sort.AttributeCodeArchComparator.java

/**
 *
 * @author dshurtleff
 */
public class AttributeCodeArchComparator<T extends AttributeCode> implements Comparator<T>, Serializable {

From source file org.apache.wiki.util.comparators.CollatorComparator.java

/**
 * A comparator that sorts Strings using a Collator. This class is needed
 * because, even though Collator implements
 * <code>Comparator&lt;Object&gt;</code> and the required
 * <code>compare(String, String)</code> method, you can't safely cast Collator
 * to <code>Comparator&lt;String&gt;</code>.

From source file edu.usu.sdl.openstorefront.core.sort.AttributeCodeArchViewComparator.java

/**
 * Compares Architecture codes
 *
 * @author dshurtleff
 * @param <T>
 */

From source file com.norconex.commons.wicket.util.SortablePropertyComparator.java

/**
 * Comparator for {@link SortParam} instances.
 * @author Pascal Essiembre
 *
 * @param <T> the type of objects that may be compared by this comparator
 * @param <S> the {@link SortParam} type