Class org.jfouffa.util.QuickSortAlgorithm
java.lang.Object
|
+----org.jfouffa.util.SortAlgorithm
|
+----org.jfouffa.util.QuickSortAlgorithm
- public class QuickSortAlgorithm
- extends SortAlgorithm
The quicksort algorithm.
Constructor index
-
QuickSortAlgorithm()
-
Method index
-
sort(Object[], int, int, Comparable)
- The quicksort function.
Constructors
QuickSortAlgorithm
public QuickSortAlgorithm()
Methods
sort
public void sort(Object objs[],
int start,
int end,
Comparable comp)
- The quicksort function.
- Parameters:
- objs - the array with all objects
- start - the start offset in the array
- end - the end offset in the array
- comp - The comparaison function between objects
- Overrides:
- sort in class SortAlgorithm