Package gnu.kawa.util
Class HeapSort<T,C>
- java.lang.Object
-
- gnu.kawa.util.HeapSort<T,C>
-
- Direct Known Subclasses:
HeapSort.IndexSort
public abstract class HeapSort<T,C> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HeapSort.IndexSort
Sort an error of integer indexes based on a lookup object.
-
Constructor Summary
Constructors Constructor Description HeapSort()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract int
compare(T a, int i, int j, C comparator)
void
heapSort(T a, int count, C comparator)
protected abstract void
swap(T a, int i, int j)
-