List of usage examples for java.util Comparator interface-usage
From source file biz.netcentric.cq.tools.actool.comparators.AcePermissionComparator.java
/** Implements the AC Tool best practice ordering {@code biz.netcentric.cq.tools.actool.helper.AcHelper.ACE_ORDER_ACTOOL_BEST_PRACTICE}: * Denies are used as little as possible and ordered to top of ACL list, allows follow underneath. For some special cases (e.g. when working * with restrictions that limit a preceding allow) it is possible to specify "keepOrder=true", for those cases the natural order from the * config file is kept. */ public class AcePermissionComparator implements Comparator<AceBean> {
From source file com.joyent.manta.client.MantaObjectDepthComparator.java
/**
* {@link Comparator} implementation that sorts {@link MantaObject} instances
* by file first, then directory depth (deepest first).
*
* @author <a href="https://github.com/dekobon">Elijah Zupancic</a>
* @since 3.1.7
From source file Main.java
class SortQueueViaPriority implements Comparator<Flight> { @Override public int compare(Flight f1, Flight f2) { return Integer.compare(f2.getPriority(), f1.getPriority()); } }
From source file AlphabeticSearch.java
class AlphabeticComparator implements Comparator { public int compare(Object o1, Object o2) { String s1 = (String) o1; String s2 = (String) o2; return s1.toLowerCase().compareTo(s2.toLowerCase()); }
From source file AlphabeticSorting.java
class AlphabeticComparator implements Comparator { public int compare(Object o1, Object o2) { String s1 = (String) o1; String s2 = (String) o2; return s1.toLowerCase().compareTo(s2.toLowerCase()); }
From source file com.zlfun.framework.table.ItemComparator.java
/** * * @author hubin */ public class ItemComparator<T> implements Comparator<T> {
From source file org.cryptomator.common.SemVerComparator.java
public class SemVerComparator implements Comparator<String> { @Override public int compare(String version1, String version2) { final String[] vComps1 = StringUtils.split(version1, '.'); final String[] vComps2 = StringUtils.split(version2, '.');
From source file org.openhab.binding.dwdunwetter.internal.data.SeverityComparator.java
/** * Comperator to sort a Warning first by Severity, second by the onSet date. * * @author Martin Koehler - Initial contribution */ public class SeverityComparator implements Comparator<DwdWarningData> {
From source file com.mitre.storefront.variants.impl.DefaultVariantComparator.java
/** * Default comparator for variant values. */ public class DefaultVariantComparator implements Comparator<Object> { @Override public int compare(final Object variant1, final Object variant2) {
From source file com.pedra.storefront.variants.impl.DefaultVariantComparator.java
/** * Default comparator for variant values */ public class DefaultVariantComparator implements Comparator<Object> { @Override public int compare(final Object variant1, final Object variant2) {