|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.util.Sort
A class that provides some static sort methods for arrays of Objects.
Constructor Summary | |
Sort()
|
Method Summary | |
static void |
bubbleSortAscending(java.lang.Object[] elements,
Comparator comp)
Sort the objects in elements in ascending order as determined by comp. |
static void |
bubbleSortDescending(java.lang.Object[] elements,
Comparator comp)
Sort the objects in elements in descending order as determined by comp. |
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 bubbleSortAscending(java.lang.Object[] elements, Comparator comp)
elements
- an array of objects to be sorted.comp
- a Comparator used to determine ordering of elements.public static void bubbleSortDescending(java.lang.Object[] elements, Comparator comp)
elements
- an array of objects to be sorted.comp
- a Comparator used to determine ordering of elements.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |