|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.dictionary.sort.InsertionSort
public class InsertionSort
Provides an implementation of the insertion sort algorithm.
| Constructor Summary | |
|---|---|
InsertionSort()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InsertionSort()
| 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||