List of usage examples for java.util Comparator interface-usage
From source file org.openmrs.comparator.PatientIdentifierTypeDefaultComparator.java
/**
* Orders {@link PatientIdentifierType} by retired (true last), required (true first), name and
* id.
*
* @since 1.9.2, 1.8.5
*/
From source file com.jobplanner.solver.EmployeeStrengthComparator.java
public class EmployeeStrengthComparator implements Comparator<Employee>, Serializable { /** * */ private static final long serialVersionUID = 1L;
From source file com.comcast.video.dawg.controller.house.MetaStbPropComparator.java
/**
* Sorts MetaStb properties. This will put certain important properties first
* and then sort the rest alphabetically
* @author Kevin Pearson
*
*/
From source file org.optaconf.benchmark.examples.common.business.ProblemFileComparator.java
public class ProblemFileComparator implements Comparator<File> { private static final AlphaNumericStringComparator ALPHA_NUMERIC_STRING_COMPARATOR = new AlphaNumericStringComparator(); public int compare(File a, File b) { String aLowerCaseName = a.getName().toLowerCase(Locale.US);
From source file org.kuali.ole.gl.web.util.OriginEntryFileComparator.java
/** * An implementation of Comparator which compares origin entry Files by their name prefix and then by last modified date */ public class OriginEntryFileComparator implements Comparator<File> { public int compare(File o1, File o2) {
From source file org.b3log.solo.util.comparator.ArticleCreateDateComparator.java
/**
* Article comparator by create date.
*
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @version 1.0.0.1, Dec 30, 2010
*/
From source file org.b3log.solo.util.comparator.ArticleUpdateDateComparator.java
/**
* Article comparator by update date.
*
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @version 1.0.0.1, Dec 30, 2010
*/
From source file org.jboss.qa.brms.performance.examples.common.business.ProblemFileComparator.java
public class ProblemFileComparator implements Comparator<File> { private static final AlphaNumericStringComparator ALPHA_NUMERIC_STRING_COMPARATOR = new AlphaNumericStringComparator(); @Override public int compare(File a, File b) {
From source file com.xiongyingqi.util.comparator.InstanceComparator.java
/**
* Compares objects based on an arbitrary class order. Allows objects to be sorted based
* on the types of class that they inherit, for example: this comparator can be used to
* sort a list {@code Number}s such that {@code Long}s occur before {@code Integer}s.
* <p/>
* <p>Only the specified {@code instanceOrder} classes are considered during comparison.
From source file com.activecq.tools.errorpagehandler.impl.StringLengthComparator.java
/** * * @author david */ public class StringLengthComparator implements Comparator<String> {