Package gnu.kawa.util
Class HeapSort.IndexSort
- java.lang.Object
-
- gnu.kawa.util.HeapSort<int[],java.lang.Object>
-
- gnu.kawa.util.HeapSort.IndexSort
-
public abstract static class HeapSort.IndexSort extends HeapSort<int[],java.lang.Object>
Sort an error of integer indexes based on a lookup object. Could be used to implement APL "grade up": Initialize the array to [0 ... count-1], and override lookup to index in the soyrce.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gnu.kawa.util.HeapSort
HeapSort.IndexSort
-
-
Constructor Summary
Constructors Constructor Description IndexSort()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected intcompare(int[] a, int i, int j, java.lang.Object comparator)protected abstract intcompare(java.lang.Object x, java.lang.Object y)protected abstract java.lang.Objectlookup(java.lang.Object comparator, int i)protected voidswap(int[] a, int i, int j)
-