List of usage examples for java.util Comparator interface-usage
From source file common.SongByAlbumn.java
/** * * @author wsuetholz */ public class SongByAlbumn implements Comparator<Song> {
From source file common.SongByArtist.java
/** * * @author wsuetholz */ public class SongByArtist implements Comparator<Song> {
From source file spring.POJOclass.database.java
@Service public class database implements Comparator<String> { public int compare(String s1, String s2) { assert s1 != null && s2 != null; return String.CASE_INSENSITIVE_ORDER.compare(s1, s2); }
From source file Main.java
class VersionNumberComparator implements Comparator<String> { @Override public int compare(String version1, String version2) { String[] v1 = version1.split("\\."); String[] v2 = version2.split("\\."); int major1 = major(v1);
From source file com.clican.pluto.cms.core.comparator.PropertyComparator.java
public class PropertyComparator<T> extends BaseComparator<T> implements Comparator<T> { private String propertyName; public PropertyComparator(String propertyName) { this.propertyName = propertyName;
From source file Main.java
class MyComparator implements Comparator<Integer> { @Override public int compare(Integer first, Integer second) { return second.compareTo(first);
From source file Main.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 org.charleech.primefaces.eval.ui.table.lazy.LazySorter.java
/**
* <p>
* This is a concrete implementing class which provides the feature described
* {@link Comparator} as a specific for {@link MyData}.
* </p>
*
From source file MainClass.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 org.vfny.geoserver.global.CoverageInfoLabelComparator.java
/** * A comparator used to sort {@link CoverageInfo} objects by label * (useful for capabilities output, for example) * @author Andrea Aime - TOPP */ public class CoverageInfoLabelComparator implements Comparator {