All Packages Class Hierarchy This Package Previous Next Index

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

 o QuickSortAlgorithm()

Method index

 o sort(Object[], int, int, Comparable)
The quicksort function.

Constructors

 o QuickSortAlgorithm
 public QuickSortAlgorithm()

Methods

 o 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