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.proposaldevelopment.bo.ProposalPersonComparator.java

/**
 * Used to order <code>{@link ProposalPerson}</code> instances by <code>{@link ProposalPersonRole}</code>.
 * 
 */
public class ProposalPersonComparator implements Comparator<ProposalPerson> {
    private static final org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory

From source file com.intel.databackend.api.helpers.ObservationComparator.java

public class ObservationComparator implements Comparator<Observation> {

    private final List<Map<String, String>> sort;
    private final ComponentDataType componentDataType;

    private static final String ASC = "Asc";

From source file com.offbynull.voip.kademlia.model.IdXorMetricComparator.java

/**
 * Compares IDs by calculating the distance (Kademlia's notion of distance -- the XOR metric) between the input IDs and a pre-defined ID.
 * <p>
 * Imagine that IDs A and B are being compared by this comparator to see which is closer to ID C (the pre-defined ID). According to the XOR
 * metric...
 * <pre>

From source file ru.runa.wfe.presentation.BatchPresentationComparator.java

public class BatchPresentationComparator implements Comparator<Executor> {

    private final BatchPresentation batchPresentation;

    public BatchPresentationComparator(BatchPresentation batchPresentation) {
        this.batchPresentation = batchPresentation;

From source file com.github.fritaly.dualcommander.ConfigurableFileComparator.java

public final class ConfigurableFileComparator implements Comparator<File> {

    private final HasParentDirectory delegate;

    private SortCriteria criteria = SortCriteria.NAME;

From source file org.kuali.kfs.module.tem.util.AccountingDistributionComparator.java

public class AccountingDistributionComparator implements Comparator<AccountingDistribution> {

    @Override
    public int compare(AccountingDistribution accountingDistribution1,
            AccountingDistribution accountingDistribution2) {
        if (StringUtils.isBlank(accountingDistribution1.getObjectCode())) {

From source file com.discovery.darchrow.util.comparator.PropertyComparator.java

/**
 * ,? <code>T</code>?? {@link #propertyName},,???? {@link Comparator}.
 * 
 * <h3> {@link #propertyName}:</h3>
 * 
 * <blockquote>

From source file org.sakaiproject.roster.api.RosterMemberComparator.java

/**
 * <code>Comparator</code> for <code>RosterMember</code>s.
 * 
 * @author d.b.robinson@lancaster.ac.uk
 */
@RequiredArgsConstructor

From source file Person.java

class PersonComparator implements Comparator<Person> {
    public int compare(Person emp1, Person emp2) {
        int nameComp = emp1.getLastName().compareTo(emp2.getLastName());
        return ((nameComp == 0) ? emp1.getFirstName().compareTo(emp2.getFirstName()) : nameComp);
    }
}

From source file com.mac.holdempoker.app.impl.SimplePlayOrder.java

/**
 *
 * @author MacDerson
 */
@Component
@Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)