Class QuickSortAlgorithm
- java.lang.Object
-
- org.hortonmachine.gears.utils.sorting.QuickSortAlgorithm
-
public class QuickSortAlgorithm extends Object
-
-
Constructor Summary
Constructors Constructor Description QuickSortAlgorithm(IHMProgressMonitor monitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsort(double[] values, double[] valuesToFollow)Sorts an array of double values and moves with the sort a second array.voidsort(double[] values, int[] valuesToFollow)voidsort(float[] values, float[] valuesToFollow)Sorts an array of float values and moves with the sort a second array.
-
-
-
Constructor Detail
-
QuickSortAlgorithm
public QuickSortAlgorithm(IHMProgressMonitor monitor)
-
-
Method Detail
-
sort
public void sort(double[] values, double[] valuesToFollow)Sorts an array of double values and moves with the sort a second array.- Parameters:
values- the array to sort.valuesToFollow- the array that should be sorted following the indexes of the first array. Can be null.
-
sort
public void sort(float[] values, float[] valuesToFollow)Sorts an array of float values and moves with the sort a second array.- Parameters:
values- the array to sort.valuesToFollow- the array that should be sorted following the indexes of the first array. Can be null.
-
sort
public void sort(double[] values, int[] valuesToFollow)
-
-