List of usage examples for java.util Comparator interface-usage
From source file Backwards.java
class EmpComparator implements Comparator { public int compare(Object obj1, Object obj2) { Employee emp1 = (Employee) obj1; Employee emp2 = (Employee) obj2;
From source file org.apache.distributedlog.service.balancer.CountBasedStreamChooser.java
/** * A stream chooser based on number of streams. */ class CountBasedStreamChooser implements StreamChooser, Serializable, Comparator<Pair<SocketAddress, LinkedList<String>>> {
From source file de.uni_rostock.goodod.owl.comparison.OntoSimComparator.java
/** * Abstract superclass of classes implementing similarity measures from OntoSim. * @author Niels Grewe <niels.grewe@uni-rostock.de> * */ public abstract class OntoSimComparator implements Comparator {
From source file gemlite.core.internal.index.compare.ComparatorImpl.java
public class ComparatorImpl<T> implements Comparator<T> { @Override public int compare(T o1, T o2) { if (o1 == null) return -1; if (o2 == null)
From source file net.sf.dynamicreports.report.builder.chart.SeriesOrderByNamesComparator.java
/** * @author Ricardo Mariaca (r.mariaca@dynamicreports.org) */ public class SeriesOrderByNamesComparator implements Comparator<String>, Serializable { private static final long serialVersionUID = Constants.SERIAL_VERSION_UID;
From source file com.sqewd.open.dal.core.persistence.query.EntityListSorter.java
/** * @author subhagho * */ public class EntityListSorter implements Comparator<AbstractEntity> { private static final Logger log = LoggerFactory.getLogger(EntityListSorter.class);
From source file org.apache.wiki.util.comparators.HumanComparator.java
/**
* A comparator that sorts Strings using "human" ordering, including decimal
* ordering. Only works for languages where every character is lexigraphically
* distinct and correctly unicode ordered (e.g. English). Other languages should use
* <code>CollatedHumanComparator</code>. Pretty efficient but still slower than
* String.compareTo().
From source file com.cubusmail.server.mail.util.MessageComparator.java
/** * Comparator for message sorting. * * @author Juergen Schlierf */ public class MessageComparator implements Comparator<Message> {
From source file org.plasma.sdo.jdbc.service.CommitComparator.java
public abstract class CommitComparator implements Comparator<CoreDataObject>, Serializable { private static final long serialVersionUID = 1L; private static Log log = LogFactory.getFactory().getInstance(CommitComparator.class); protected boolean isSingularRelation(DataObject target, DataObject source) {
From source file org.kuali.rice.krad.util.BeanPropertyComparator.java
/** * BeanPropertyComparator compares the two beans using multiple property names * * */ public class BeanPropertyComparator implements Comparator, Serializable {