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.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> {

From source file Main.java

class DAYComparator implements Comparator<DAY> {

    @Override
    public int compare(final DAY o1, final DAY o2) {
        int returnValue = 0;
        if (o1.getIndex() > o2.getIndex()) {

From source file de.xwic.appkit.core.model.entities.util.NotNullComparator.java

/**
 * @author Alexandru Bledea
 * @since Oct 21, 2014
 */
public abstract class NotNullComparator<T, V> implements Comparator<T> {

From source file DirList3.java

class AlphabeticComparator implements Comparator {
    public int compare(Object o1, Object o2) {
        String s1 = (String) o1;
        String s2 = (String) o2;
        return s1.toLowerCase().compareTo(s2.toLowerCase());
    }

From source file org.beanfuse.bean.comparators.PropertyComparator.java

/**
 * <br>
 * ??null????null??
 * 
 * @author chaostone
 * 

From source file it.govpay.model.comparator.EstrattoContoComparator.java

public class EstrattoContoComparator implements Comparator<EstrattoConto> {

    @Override
    public int compare(EstrattoConto o1, EstrattoConto o2) {
        //  cod_flusso_rendicontazione, iuv, data_pagamento
        String codFlussoRendicontazione1 = o1.getCodFlussoRendicontazione() != null

From source file net.erdfelt.android.sdkfido.configer.ConfigurableComparator.java

public class ConfigurableComparator implements Comparator<Configurable> {
    private Collator collator = Collator.getInstance();

    public int compare(Configurable c1, Configurable c2) {
        CollationKey key1 = asKey(c1);
        CollationKey key2 = asKey(c2);

From source file org.jasig.portlet.contacts.model.util.ContactComparator.java

/**
 *
 * @author chris
 */
public class ContactComparator implements Comparator<Contact> {

From source file org.commonjava.indy.subsys.prefetch.PrefetchRepoComparator.java

public class PrefetchRepoComparator<T extends RemoteRepository> implements Comparator<RemoteRepository> {
    @Override
    public int compare(RemoteRepository r1, RemoteRepository r2) {
        if (r1 == null) {
            return 1;
        }

From source file com.midisheetmusicmemo.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> {