List of usage examples for java.util Comparator interface-usage
From source file org.sakaiproject.gradebookng.business.AssignmentGradeComparator.java
/**
* Comparator class for sorting an assignment by the grades.
*
* Note that this must have the assignmentId set into it so we can extract the appropriate grade entry from the map that each student has.
*
*/
From source file org.sift.batch.tag.TagCloudProcessor.java
/**
* The <code>TagCloudProcessor</code> is an implementation of the Spring Batch {@link ItemProcessor} that orders tags by descending order of their weights
* and uses only the first N tags as identified by {@link TagCloudProcessor#getMaxTags()}
*
* @author Regunath B
* @version 1.0, 31 Jan 2013
From source file ch.rasc.edsutil.PropertyComparator.java
public class PropertyComparator<T> implements Comparator<T> { private final static SpelExpressionParser parser = new SpelExpressionParser( new SpelParserConfiguration(SpelCompilerMode.IMMEDIATE, null)); private final Expression readPropertyExpression; private final boolean ignoreCase;
From source file com.github.fritaly.dualcommander.FileComparator.java
public final class FileComparator implements Comparator<File> { private final HasParentDirectory delegate; public FileComparator(HasParentDirectory delegate) { Validate.notNull(delegate, "The given delegate is null");
From source file imgb64.StringEncoderComparator.java
/**
* Compares Strings using a {@link StringEncoder}. This comparator is used to sort Strings by an encoding scheme such as
* Soundex, Metaphone, etc. This class can come in handy if one need to sort Strings by an encoded form of a name such
* as Soundex.
*
* <p>This class is immutable and thread-safe.</p>
From source file com.alta189.beaker.HandlerPriorityComparator.java
public class HandlerPriorityComparator implements Comparator { @Override public int compare(Object o1, Object o2) { Validate.notNull(o1); Validate.notNull(o2);
From source file org.kuali.ole.gl.batch.ScrubberSortComparator.java
public class ScrubberSortComparator implements Comparator<String> { OriginEntryFieldUtil oefu = new OriginEntryFieldUtil(); Map<String, Integer> pMap = oefu.getFieldBeginningPositionMap(); int originEntryRecordLength = GeneralLedgerConstants.getSpaceAllOriginEntryFields().length();
From source file edu.usu.sdl.openstorefront.sort.AttributeCodeArchComparator.java
/** * * @author dshurtleff */ public class AttributeCodeArchComparator<T extends AttributeCode> implements Comparator<T>, Serializable {
From source file edu.usu.sdl.openstorefront.sort.ArchitectureComparator.java
/**
* Compare Architecture based on codes
*
* @author dshurtleff
* @param <T>
*/
From source file edu.usu.sdl.openstorefront.core.sort.ArchitectureComparator.java
/**
* Compare Architecture based on codes
*
* @author dshurtleff
* @param <T>
*/