sunlabs.brazil.util
public class Sort extends Object
Version: 2.2
| Nested Class Summary | |
|---|---|
| interface | Sort.Compare
This interface is used by the Sort class to compare
elements when an array is being sorted.
|
| Method Summary | |
|---|---|
| static void | qsort(Vector strings)
Sort a vector of strings using the Qsort algorithm.
|
| static void | qsort(Object array)
Sorts an array of the basic types (ints, floats, bytes, etc.) or
Strings. |
| static void | qsort(Object array, Sort.Compare compare)
Sorts an array. |
Parameters: array The array to sort in place.
Throws: IllegalArgumentException
if array is not an array of the types listed
above.
Parameters: array The array to sort in place. compare The comparator for sort order.
Throws: IllegalArgumentException
if array is not an array.