Package com.cosylab.vdct.util
Class QuickSort
- java.lang.Object
-
- com.cosylab.vdct.util.QuickSort
-
- Direct Known Subclasses:
IntegerQuickSort,StringQuickSort
public abstract class QuickSort extends Object
QuickSort algorithm (divide & conquer) !!! replace qs alg with other !!!
-
-
Constructor Summary
Constructors Constructor Description QuickSort()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanlessThan(Object oFirst, Object oSecond)voidsort(Object[] table)voidsort(Object[] table, int nLow0, int nHigh0)Object[]sortEnumeration(Enumeration e)This method was created in VisualAge.
-
-
-
Method Detail
-
lessThan
public abstract boolean lessThan(Object oFirst, Object oSecond)
- Parameters:
oFirst- oFirstoSecond- oSecond- Returns:
- something
-
sort
public void sort(Object[] table)
- Parameters:
table- table
-
sort
public void sort(Object[] table, int nLow0, int nHigh0)
- Parameters:
table- tablenLow0- nLow0nHigh0- nHigh0
-
sortEnumeration
public Object[] sortEnumeration(Enumeration e)
This method was created in VisualAge.- Parameters:
e- Enumeration- Returns:
- something
-
-