List of utility methods to do List Sort
void | sortVersions(List sort Versions if (versions != null) {
Collections.sort(versions);
|
List | stringListSort(List string List Sort class ComparatorThis implements Comparator<String> { public int compare(String o1, String o2) { String s1 = (String) o1; String s2 = (String) o2; if (s1 == null || s2 == null) { return 0; return s1.compareTo(s2); ... |
List | subtractSortedLists(List subtract Sorted Lists List<T> result = new ArrayList<T>(a.size()); Iterator<T> aIter = a.iterator(); Iterator<T> bIter = b.iterator(); T aVal = null; if (aIter.hasNext()) { aVal = aIter.next(); T bVal = null; ... |
List | toSortedList(Collection to Sorted List List<String> out = new ArrayList<>(in); Collections.sort(out); return Collections.unmodifiableList(out); |
List | toSortedList(Collection to Sorted List List<T> result = new ArrayList<>(collection); Collections.sort(result); return result; |
List | toSortedList(Collection to Sorted List List<T> list = new LinkedList<>(collection); Collections.sort(list); return list; |
List | toSortedList(Collection to Sorted List List<T> list = new ArrayList<T>(); list.addAll(collection); Collections.sort(list); return list; |