Class QuickSortAlgorithmObjects
- java.lang.Object
-
- org.hortonmachine.gears.utils.sorting.QuickSortAlgorithmObjects
-
public class QuickSortAlgorithmObjects extends Object
Sorting of a double array with an array of objects following.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Constructor Summary
Constructors Constructor Description QuickSortAlgorithmObjects(IHMProgressMonitor monitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsort(double[] values, Object[] valuesToFollow)Sorts an array of values and moves with the sort a second array.
-
-
-
Constructor Detail
-
QuickSortAlgorithmObjects
public QuickSortAlgorithmObjects(IHMProgressMonitor monitor)
-
-
Method Detail
-
sort
public void sort(double[] values, Object[] valuesToFollow)Sorts an array of 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.
-
-