public class Sort
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Sort.Compare
This interface is used by the
Sort class to compare
elements when an array is being sorted. |
| Modifier and Type | Method and Description |
|---|---|
static void |
qsort(java.lang.Object array)
Sorts an array of the basic types (ints, floats, bytes, etc.) or
Strings.
|
static void |
qsort(java.lang.Object array,
Sort.Compare compare)
Sorts an array.
|
static void |
qsort(java.util.Vector strings)
Sort a vector of strings using the Qsort algorithm.
|
public static void qsort(java.util.Vector strings)
public static void qsort(java.lang.Object array)
throws java.lang.IllegalArgumentException
array - The array to sort in place.java.lang.IllegalArgumentException - if array is not an array of the types listed
above.public static void qsort(java.lang.Object array,
Sort.Compare compare)
throws java.lang.IllegalArgumentException
array - The array to sort in place.compare - The comparator for sort order.java.lang.IllegalArgumentException - if array is not an array.