com.sssw.fw.util
Class EboQSort
java.lang.Object
|
+--com.sssw.fw.util.EboQSort
- public class EboQSort
- extends Object
This class provides utility methods for sorting groups of
objects of the same type. The sorting is based on the
C.A.R. Hoare's Quick Sort algorithm. See also
com.sssw.fw.api.EbiComparator.
|
Constructor Summary |
EboQSort()
Constructor |
|
Method Summary |
void |
sort(Vector vector)
Sorts the supplied vector using the default comparator which assumes
that the objects in the vector are strings. |
static void |
SORT(Vector v)
The static version of the sort method. |
void |
sort(Vector vector,
EbiComparator comparator)
Sorts the supplied vector using the supplied comparator. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
EboQSort
public EboQSort()
- Constructor
SORT
public static void SORT(Vector v)
- The static version of the sort method.
Note that this method relies on the default comparator
which assumes that the objects being sorted are Strings.
- Parameters:
v - vector of objects to sort
sort
public void sort(Vector vector,
EbiComparator comparator)
throws Exception
- Sorts the supplied vector using the supplied comparator.
- Parameters:
vector - the vector to sortcomparator - the comparator to use- Throws:
- Exception -
sort
public void sort(Vector vector)
throws Exception
- Sorts the supplied vector using the default comparator which assumes
that the objects in the vector are strings.
- Parameters:
vector - the vector to sort- Throws:
- Exception -