public final class QuickSort extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static <T extends Comparable>  | sort(List<T> list)Sorts the given list using compareTo as comparator. | 
| static <T> void | sort(List<T> list,
    Comparator<T> cmp)Sorts the given list using the given comparator. | 
public static <T> void sort(List<T> list, Comparator<T> cmp)
list - list to be sortedcmp - comparator used to compare the object swithin the listpublic static <T extends Comparable> void sort(List<T> list)
list - list to be sortedCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.