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.osaf.cosmo.model.AuditableComparator.java

/**
 * Compares instances of {@link AuditableObject} based on their
 * created or modified dates.
 */
public class AuditableComparator implements Comparator<AuditableObject> {
    private static Log log = LogFactory.getLog(AuditableComparator.class);

From source file com.evolveum.midpoint.web.component.prism.ItemWrapperComparator.java

/**
 * @author lazyman
 */
public class ItemWrapperComparator implements Comparator<ItemWrapper>, Serializable {

    @Override

From source file com.apress.prospringintegration.channels.prioritychannel.TicketMessagePriorityComparator.java

@SuppressWarnings("unused")
@Component
public class TicketMessagePriorityComparator implements Comparator<Message<Ticket>> {

    @Override
    public int compare(Message<Ticket> message1, Message<Ticket> message2) {

From source file net.rrm.ehour.sort.UserComparator.java

public class UserComparator implements Comparator<User> {
    private boolean firstNameFirst;

    public UserComparator(boolean firstNameFirst) {
        this.firstNameFirst = firstNameFirst;
    }

From source file org.cleverbus.core.common.asynch.msg.MsgPriorityComparator.java

/**
 * Comparator sorts exchanges in the queue by {@link Message#getProcessingPriority() message priority of processing}.
 *
 * @author <a href="mailto:petr.juza@cleverlance.com">Petr Juza</a>
 * @since 0.4
 */

From source file org.jboss.dashboard.ui.taglib.formatter.ForComparator.java

public class ForComparator implements Comparator {
    private static transient org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory
            .getLog(ForComparator.class.getName());
    private List sortTokens = new ArrayList();

    public ForComparator(String sortProperties) {

From source file org.drools.planner.examples.nurserostering.domain.solver.AssignmentDifficultyComparator.java

public class AssignmentDifficultyComparator implements Comparator<Object> {

    public int compare(Object a, Object b) {
        return compare((Assignment) a, (Assignment) b);
    }

From source file org.optaplanner.examples.cheaptime.domain.solver.TaskAssignmentDifficultyComparator.java

public class TaskAssignmentDifficultyComparator implements Comparator<TaskAssignment>, Serializable {

    public int compare(TaskAssignment a, TaskAssignment b) {
        Task aTask = a.getTask();
        Task bTask = b.getTask();
        return new CompareToBuilder()

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

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

From source file MethodComparator.java

/**
 * Sorts methods according to their name, number of parameters, and parameter
 * types.
 */
public class MethodComparator implements Comparator<Method> {