|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jimmc.roots.Sort
The Sort class is a repository for sorting routines.
Constructor Summary | |
Sort()
|
Method Summary | |
static void |
bubbleSort(java.lang.Object[] a,
SortComparator compare)
Sort an array using a bubble sort. |
static void |
sortArray(java.lang.Object[] a,
SortComparator compare)
Sort an array using a default sort method. |
static void |
sortStrings(java.lang.String[] a)
Sort an array of Strings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Sort()
Method Detail |
public static void sortArray(java.lang.Object[] a, SortComparator compare)
a
- input array to sort. Sorts it in place.compare
- comparison object used to compare items in array.public static void bubbleSort(java.lang.Object[] a, SortComparator compare)
a
- input array to sort. Sorts it in place.compare
- comparison object used to compare items in array.public static void sortStrings(java.lang.String[] a)
a
- input array to sort. Sorts it in place.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |