List of usage examples for java.util Comparator interface-usage
From source file org.cloudgraph.store.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.ole.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;
From source file org.plasma.sdo.access.provider.common.DataObjectPathDepthComparator.java
/** * Compares its two data-objects for path depth relative to a data-graph root. * */ public class DataObjectPathDepthComparator implements Comparator<DataObject> {
From source file CalendarComparator.java
/** * @author Gavin King */ public class CalendarComparator implements Comparator { public int compare(Object x, Object y) {
From source file com.sunchenbin.store.feilong.core.util.comparator.PropertyComparator.java
/**
* ,? <code>T</code>?? {@link #propertyName},,???? {@link Comparator}.
*
* <h3> {@link #propertyName}:</h3>
*
* <blockquote>
From source file net.siegmar.japtproxy.packages.AbstractRepoPackageVersionComparator.java
/**
* The VersionComparator is responsible for comparing package
* versions. This is required for sorting a list of packages
* from the same program with different versions.
* <p/>
* The algorithm used in this class was borrowed from {@code vercmp.c}
From source file org.betaconceptframework.astroboa.console.jsf.edit.SelectItemComparator.java
/** * @author Gregory Chomatas (gchomatas@betaconcept.com) * @author Savvas Triantafyllou (striantafyllou@betaconcept.com) * */ public class SelectItemComparator implements Comparator<SelectItem> {
From source file org.loklak.data.Campaign.java
public class Campaign implements Comparator<Campaign>, Comparable<Campaign> { private JSONObject map; private long start_time, end_time; private String id;
From source file com.xiongyingqi.util.comparator.CompoundComparator.java
/**
* A comparator that chains a sequence of one or more more Comparators.
* <p/>
* <p>A compound comparator calls each Comparator in sequence until a single
* Comparator returns a non-zero result, or the comparators are exhausted and
* zero is returned.
From source file org.projectforge.common.MyBeanComparator.java
public class MyBeanComparator<T> implements Comparator<T> { private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(MyBeanComparator.class); private String property; private boolean asc;