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 gov.nih.nci.caintegrator.application.study.MatchScoreComparator.java

/**
 * Comparator to get the higher match score between two different AnnotationFieldDescriptors.
 * It sorts the list from highest to lowest match scores.
 */
public class MatchScoreComparator implements Comparator<AnnotationDefinition> {

From source file bwem.util.PairGenericMiniTileAltitudeComparator.java

public final class PairGenericMiniTileAltitudeComparator<T> implements Comparator<MutablePair<T, MiniTile>> {

    @Override
    public int compare(MutablePair<T, MiniTile> o1, MutablePair<T, MiniTile> o2) {
        int a1 = o1.getRight().getAltitude().intValue();
        int a2 = o2.getRight().getAltitude().intValue();

From source file bwem.util.PairGenericAltitudeComparator.java

public final class PairGenericAltitudeComparator<T> implements Comparator<MutablePair<T, Altitude>> {

    @Override
    public int compare(MutablePair<T, Altitude> o1, MutablePair<T, Altitude> o2) {
        int a1 = o1.getRight().intValue();
        int a2 = o2.getRight().intValue();

From source file gov.nih.nci.caarray.web.util.UserComparator.java

/**
 * Comparator that correctly sorts user list, as displayed in ui, with HTML A HREF.
 */
public class UserComparator implements Comparator<Cell> {

    /**

From source file gov.nih.nci.ncicb.cadsr.util.BeanPropertyComparator.java

/**
 * This Class allows to sort List of Java Beans by their properties. 
 * It handles property type of String, Float and integer property
 * Uses String "CompareIgnoreCase" to Compare attributes so
 * only string attributes of the Object should be used for sorting.
 * A Primary, Secondary, and Tertiary field can be set. 

From source file edu.temple.cis3238.wiki.vo.TagsVO.java

/**
 * Entity Class for Tags (Index terms)
 * @author (c)2016 Doreen, Dan, Christian
 */
public class TagsVO implements Serializable, Comparable<TagsVO>, IValueObject<TagsVO>, Comparator<TagsVO> {

From source file com.kegare.caveworld.util.CaveConfiguration.java

public class CaveConfiguration extends Configuration implements Comparator<String> {
    public CaveConfiguration() {
    }

    public CaveConfiguration(File file) {
        super(file);

From source file de.clusteval.serverclient.MyOptionComparator.java

/**
 * This comparator is needed, to sort options by their required property first
 * and second after their name.
 * 
 * @author Christian Wiwie
 * 

From source file Main.java

class TableColumnComparator implements Comparator {
    public int compare(Object a, Object b) {
        TableColumn c1 = (TableColumn) a;
        TableColumn c2 = (TableColumn) b;
        if (c1.getModelIndex() < c2.getModelIndex()) {
            return -1;

From source file org.eclipse.ecr.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);