|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.epicentric.common.QuickSorter
Data set sorter that uses the quicksort algorithm.
| Field Summary | |
static int |
ASCENDING
Deprecated. Ascending order sort type |
static int |
DESCENDING
Deprecated. Descending order sort type |
| Constructor Summary | |
QuickSorter()
Deprecated. |
|
| Method Summary | |
static Vector |
arrayToVector(Object[] array)
Deprecated. Returns the elements of an object array as a vector (convenience method). |
static Vector |
enumerationToVector(Enumeration enumeration)
Deprecated. Returns the elements of an enumeration as a vector (convenience method). |
Vector |
getSortedItems(Enumeration items,
com.sun.java.util.collections.Comparator comparator)
Deprecated. As of 4.0, to be removed in 8.0 or later. Replaced by java.util.Collections.sort() |
Vector |
getSortedItems(Enumeration items,
com.sun.java.util.collections.Comparator comparator,
int sortType)
Deprecated. As of 4.0, to be removed in 8.0 or later. Replaced by java.util.Collections.sort() |
Vector |
getSortedItems(Object[] items,
com.sun.java.util.collections.Comparator comparator)
Deprecated. As of 4.0, to be removed in 8.0 or later. Replaced by java.util.Collections.sort() |
Vector |
getSortedItems(Object[] items,
com.sun.java.util.collections.Comparator comparator,
int sortType)
Deprecated. As of 4.0, to be removed in 8.0 or later. Replaced by java.util.Collections.sort() |
Vector |
getSortedItems(Vector items,
com.sun.java.util.collections.Comparator comparator)
Deprecated. As of 4.0, to be removed in 8.0 or later. Replaced by java.util.Collections.sort() |
Vector |
getSortedItems(Vector items,
com.sun.java.util.collections.Comparator comparator,
int sortType)
Deprecated. As of 4.0, to be removed in 8.0 or later. Replaced by java.util.Collections.sort() |
static Vector |
reverse(Vector vector)
Deprecated. Reverses the order of sorted items. |
static Object[] |
vectorToArray(Vector vector)
Deprecated. Returns the elements of a vector as an object array (convenience method). |
static Enumeration |
vectorToEnumeration(Vector vector)
Deprecated. Returns the elements of a vector as an enumeration (convenience method). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ASCENDING
public static final int DESCENDING
| Constructor Detail |
public QuickSorter()
| Method Detail |
public Vector getSortedItems(Vector items,
com.sun.java.util.collections.Comparator comparator)
getSortedItems in interface GenericSorteritems - vector of objects to be sortedcomparator - comparison object to be used for sortingList,
List.addAll(java.util.Collection),
Collections.sort(java.util.List, java.util.Comparator)
public Vector getSortedItems(Vector items,
com.sun.java.util.collections.Comparator comparator,
int sortType)
getSortedItems in interface GenericSorteritems - vector of objects to be sortedcomparator - comparison object to be used for sortingsortType - ASCENDING or DESCENDINGList,
List.addAll(java.util.Collection),
Collections.sort(java.util.List, java.util.Comparator)
public Vector getSortedItems(Enumeration items,
com.sun.java.util.collections.Comparator comparator)
items - enumeration of objects to be sortedcomparator - comparison object to be used for sortingList,
List.addAll(java.util.Collection),
Collections.sort(java.util.List, java.util.Comparator)
public Vector getSortedItems(Enumeration items,
com.sun.java.util.collections.Comparator comparator,
int sortType)
items - enumeration of objects to be sortedcomparator - comparison object to be used for sortingsortType - ASCENDING or DESCENDINGList,
List.addAll(java.util.Collection),
Collections.sort(java.util.List, java.util.Comparator)
public Vector getSortedItems(Object[] items,
com.sun.java.util.collections.Comparator comparator)
items - array of objects to be sortedcomparator - comparison object to be used for sortingList,
List.addAll(java.util.Collection),
Collections.sort(java.util.List, java.util.Comparator)
public Vector getSortedItems(Object[] items,
com.sun.java.util.collections.Comparator comparator,
int sortType)
items - array of objects to be sortedcomparator - comparison object to be used for sortingsortType - ASCENDING or DESCENDINGList,
List.addAll(java.util.Collection),
Collections.sort(java.util.List, java.util.Comparator)public static Vector reverse(Vector vector)
vector - input vector of sorted itemspublic static Object[] vectorToArray(Vector vector)
vector - input vectorvector is null or emptypublic static Vector arrayToVector(Object[] array)
array - input object arrayarray is null or emptypublic static Vector enumerationToVector(Enumeration enumeration)
enumeration - input enumerationenumeration is null
or emptypublic static Enumeration vectorToEnumeration(Vector vector)
vector - input vectorvector is null
|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||