|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.relayirc.util.QuickSort
public class QuickSort
Quick sort implementation that will sort an array or Vector of IComparable objects.
IComparable
,
Vector
Constructor Summary | |
---|---|
QuickSort()
|
Method Summary | |
---|---|
static boolean |
needsSorting(java.util.Vector v)
Quicksort will rearrange elements when they are all equal. |
static void |
quicksort(IComparable[] arr,
boolean ascending)
|
static void |
quicksort(java.util.Vector v,
boolean ascending)
|
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 static boolean needsSorting(java.util.Vector v)
public static void quicksort(IComparable[] arr, boolean ascending)
public static void quicksort(java.util.Vector v, boolean ascending)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |