Package org.apache.pdfbox.util
Class QuickSort
java.lang.Object
org.apache.pdfbox.util.QuickSort
see http://de.wikipedia.org/wiki/Quicksort.
- Author:
- Uwe Pachler, Manuel Aristaran
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Comparable>
voidSorts 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.
-
Method Details
-
sort
Sorts the given list using the given comparator.- Type Parameters:
T
- type of the objects to be sorted.- Parameters:
list
- list to be sortedcmp
- comparator used to compare the objects within the list
-
sort
Sorts the given list using compareTo as comparator.- Type Parameters:
T
- type of the objects to be sorted.- Parameters:
list
- list to be sorted
-