|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.dictionary.sort.QuickSort
public class QuickSort
Provides an implementation of the quick sort algorithm.
| Constructor Summary | |
|---|---|
QuickSort()
|
|
| Method Summary | |
|---|---|
void |
sort(java.lang.String[] array)
This will sort the supplied string array. |
void |
sort(java.lang.String[] array,
java.util.Comparator<java.lang.String> c)
This will sort the supplied string array. |
static void |
sort(java.lang.String[] array,
java.util.Comparator<java.lang.String> c,
int lo,
int hi)
This will sort the supplied array beginning at the lo index and ending at the hi index, using the quick sort algorithm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuickSort()
| Method Detail |
|---|
public void sort(java.lang.String[] array)
sort in interface ArraySorterarray - To sort
public void sort(java.lang.String[] array,
java.util.Comparator<java.lang.String> c)
sort in interface ArraySorterarray - To sortc - Comparator to sort with
public static void sort(java.lang.String[] array,
java.util.Comparator<java.lang.String> c,
int lo,
int hi)
array - String[] to sortc - Comparator to sort withlo - int index to beginning sorting athi - int index to stop sorting at
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||