|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pdfbox.util.QuickSort
public class QuickSort
see http://de.wikipedia.org/wiki/Quicksort.
| Method Summary | ||
|---|---|---|
static
|
sort(List<T> list)
Sorts the given list using compareTo as comparator. |
|
static
|
sort(List<T> list,
Comparator<T> cmp)
Sorts the given list using the given comparator. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 sorted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||