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.kuali.kra.questionnaire.answer.AnswerComparator.java

/**
 * 
 * This class is implementing comparator for Answer in order to sort answer based
 * on questionnaire questions order
 */
public class AnswerComparator implements Comparator<Answer> {

From source file ddf.catalog.util.impl.TemporalResultComparator.java

/**
 * Comparator for the temporal attribute of 2 {@link Result} objects.
 *
 */
public class TemporalResultComparator implements Comparator<Result> {

From source file org.mule.devkit.generation.studio.editor.VariableComparator.java

public class VariableComparator implements Comparator<Variable> {

    private static final int VARIABLE1_FIRST = -1;
    private static final int VARIABLE2_FIRST = 1;

    /**

From source file org.squale.jraf.bootstrap.config.ProviderConfigComparator.java

/**
 * <p>Title : ProviderConfigComparator.java</p>
 * <p>Description : Objet permettant de trier des configurations de provider</p>
 * <p>Copyright : Copyright (c) 2004</p>
 * 
 * @author Eric BELLARD

From source file nl.b3p.commons.services.BeanCompare.java

public class BeanCompare implements Comparator {

    private String compareField = null;

    public BeanCompare(String fieldName) {
        compareField = fieldName;

From source file org.kuali.kra.medusa.MedusaNodeComparator.java

public class MedusaNodeComparator implements Comparator<MedusaNode> {

    public int compare(MedusaNode m1, MedusaNode m2) {
        return getNodeValue(m1).compareTo(getNodeValue(m2));
    }

From source file org.apache.maven.plugin.changelog.FileActivityComparator.java

/**
 * Object used to sort the file-activity report into descending order.
 *
 * @version $Id$
 */
public class FileActivityComparator implements Comparator<List<ChangeFile>> {

From source file org.nuxeo.ecm.platform.ui.web.model.impl.SelectDocumentDataModelRowComparator.java

/**
 * Comparator for {@link org.nuxeo.ecm.platform.ui.web.model.SelectDataModel} items containing {@link DocumentModel}
 * data.
 *
 * @author <a href="mailto:at@nuxeo.com">Anahide Tchertchian</a>
 *

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

/**
 * @author Gregory Chomatas (gchomatas@betaconcept.com)
 * @author Savvas Triantafyllou (striantafyllou@betaconcept.com)
 * 
 */
public class TopicLocalizedLabelComparator implements Comparator<Topic>, Serializable {

From source file org.sakaiproject.tool.messageforums.AuthzGroupComparator.java

public class AuthzGroupComparator implements Comparator {

    private static Log LOG = LogFactory.getLog(DiscussionForumTool.class);

    private String m_property = null;