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.test.comparators.CheckpointPropertyComparator.java

/**
 *
 * @author rbtucker
 */
public class CheckpointPropertyComparator implements Comparator<CheckpointProperty> {
    @Override

From source file org.eclipse.koneki.ldt.debug.core.internal.LuaVariableComparator.java

public class LuaVariableComparator implements Comparator<IVariable>, Serializable {
    private static final long serialVersionUID = -5828968181211469862L;

    private int category(IVariable var) throws DebugException {
        return var.getReferenceTypeName().equals(LuaDebugConstants.TYPE_SPECIAL) ? 0 : 1;
    }

From source file com.redhat.rhn.manager.channel.EusReleaseComparator.java

/**
 * EusReleaseComparator
 *
 * Compare two RHEL releases, where the behavior can differ depending on which version
 * of RHEL we're dealing with. (RHEL 4 in particular needs special attention.)
 *

From source file org.jasig.portlet.maps.tools.ByNameLocationComparator.java

public class ByNameLocationComparator implements Comparator<Location> {

    @Override
    public int compare(Location location1, Location location2) {
        return new CompareToBuilder().append(location1.getName(), location2.getName())
                .append(location1.getAbbreviation(), location2.getAbbreviation()).toComparison();

From source file org.onebusaway.admin.comparator.LastUpdateComparator.java

/**
 * Compares vehicle records on last reported time
 * @author abelsare
 *
 */
public class LastUpdateComparator implements Comparator<VehicleStatus> {

From source file picocash.model.helper.NameAndIconComparator.java

/**
 *
 * @author wusel
 */
public class NameAndIconComparator implements Comparator<NameAndIconable> {

From source file org.sakaiproject.scorm.model.api.comparator.LearnerExperienceComparator.java

/**
 * Custom comparator for LearnerExperience objects; used for sorting data tables.
 * @author bjones86
 */
public class LearnerExperienceComparator implements Comparator<LearnerExperience>, Serializable {
    /**

From source file org.kuali.kra.protocol.actions.print.QuestionnairePrintOptionComparator.java

/**
 * 
 * This class is to implement the comparator questionnaire print items.
 */
public class QuestionnairePrintOptionComparator implements Comparator<QuestionnairePrintOption> {

From source file org.onebusaway.admin.comparator.PullinTimeComparator.java

/**
 * Compares vehicles on pullout time
 * @author abelsare
 *
 */
public class PullinTimeComparator implements Comparator<VehicleStatus> {

From source file org.onebusaway.admin.comparator.PulloutTimeComparator.java

/**
 * Compares vehicles on pullout time
 * @author abelsare
 *
 */
public class PulloutTimeComparator implements Comparator<VehicleStatus> {