| 
 |   | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--sunlabs.brazil.util.Sort
Placeholder for useful sorting utilities. Currently, sorting arrays and Vectors using the qsort algorithm are preovided.
| Nested Class Summary | |
| static interface | Sort.CompareThis interface is used by the Sortclass to compare
 elements when an array is being sorted. | 
| Method Summary | |
| 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. | 
| static void | qsort(Vector strings)Sort a vector of strings using the Qsort algorithm. | 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
public static void qsort(Vector strings)
public static void qsort(Object array)
                  throws IllegalArgumentException
array - The array to sort in place.
IllegalArgumentException - if array is not an array of the types listed
		above.
public static void qsort(Object array,
                         Sort.Compare compare)
                  throws IllegalArgumentException
array - The array to sort in place.compare - The comparator for sort order.
IllegalArgumentException - if array is not an array.| 
 | Version 2.1, Generated 12/30/04 Copyright (c) 2001-2004, Sun Microsystems. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||