- java.lang.Object
-
- org.scijava.ops.image.coloc.IntArraySorter
-
public final class IntArraySorter extends Object
Sorts anint[]according to a custom comparator.This is an implementation of introsort, i.e. it is stable because it tries the quicksort algorithm first and falls back to the heap sort when it detects an unfavorable execution path.
- Author:
- Johannes Schindelin
-
-
Method Detail
-
sort
public static void sort(int[] array, IntComparator comparator)
-
-