public final class HeapSort extends Object implements IndexedSorter
Constructor and Description |
---|
HeapSort() |
Modifier and Type | Method and Description |
---|---|
void |
sort(IndexedSortable s,
int p,
int r)
Sort the given range of items using heap sort.
|
void |
sort(IndexedSortable s,
int p,
int r,
Progressable rep)
Same as
IndexedSorter.sort(IndexedSortable,int,int) , but indicate progress
periodically. |
public void sort(IndexedSortable s, int p, int r)
sort
in interface IndexedSorter
IndexedSortable.compare(int, int)
,
IndexedSortable.swap(int, int)
public void sort(IndexedSortable s, int p, int r, Progressable rep)
IndexedSorter.sort(IndexedSortable,int,int)
, but indicate progress
periodically.sort
in interface IndexedSorter
IndexedSorter.sort(IndexedSortable,int,int)
Copyright © 2010 The Apache Software Foundation