List of usage examples for java.util Comparator interface-usage
From source file org.squale.welcom.taglib.table.ColComparator.java
/** * @author M327837 Pour changer le modle de ce commentaire de type gnr, allez : * Fentre>Prfrences>Java>Gnration de code>Code et commentaires */ public class ColComparator implements Comparator { /** Constante */
From source file org.theospi.portfolio.help.model.TermComparator.java
public class TermComparator implements Comparator { protected final transient Log logger = LogFactory.getLog(getClass()); /** * Compares its two arguments for order. Returns a negative integer, * zero, or a positive integer as the first argument is less than, equal
From source file org.sakaiproject.tool.messageforums.GroupComparator.java
public class GroupComparator implements Comparator { private Log LOG = LogFactory.getLog(DiscussionForumTool.class); private String m_property = null;
From source file org.xlrnet.tibaija.util.ComplexComparator.java
/** * Compares two Complex values. Throws an UnsupportedOperationException if you try to compare complex values with * imaginary parts. */ public class ComplexComparator implements Comparator<Complex>, Serializable {
From source file com.twitter.distributedlog.service.balancer.CountBasedStreamChooser.java
class CountBasedStreamChooser implements StreamChooser, Serializable, Comparator<Pair<SocketAddress, LinkedList<String>>> { private static final long serialVersionUID = 4664153397369979203L; final List<Pair<SocketAddress, LinkedList<String>>> streamsDistribution;
From source file arena.httpclient.redundant.HostPool.java
/**
* This maps to the HostConfiguration element of the commons http client. It's
* intended to hold the configuration details of a single host, so that
* host pools can be formed. Currently it makes no attempt to actually pool
* http connections, etc, so this is purely for failover rather than performance.
*
From source file org.betaconceptframework.astroboa.commons.comparator.ContentObjectFolderComparator.java
/** * @author Gregory Chomatas (gchomatas@betaconcept.com) * @author Savvas Triantafyllou (striantafyllou@betaconcept.com) * */ public class ContentObjectFolderComparator implements Comparator<ContentObjectFolder> {
From source file NaturalOrderComparator.java
public class NaturalOrderComparator implements Comparator { int compareRight(String a, String b) { int bias = 0; int ia = 0; int ib = 0;
From source file Main.java
class EmpComparator implements Comparator { public int compare(Object obj1, Object obj2) { Employee emp1 = (Employee) obj1; Employee emp2 = (Employee) obj2;
From source file org.kuali.kfs.sys.DynamicCollectionComparator.java
/** * The comparator can dynamically implement java.util.Comparator and facilitate to sort a given colletion. This implementation is * based on an article by York Davis, which was published in Java Developer's Journal (http://java.sys-con.com/read/45837.htm). */ public class DynamicCollectionComparator<T> implements Comparator<T>, Serializable { private List<T> list;