public final class QuickSort extends Object implements IndexedSorter
构造器和说明 |
---|
QuickSort() |
限定符和类型 | 方法和说明 |
---|---|
protected static int |
getMaxDepth(int x)
Deepest recursion before giving up and doing a heapsort.
|
void |
sort(IndexedSortable s,
int p,
int r)
Sort the given range of items using quick sort.
|
void |
sort(IndexedSortable s,
int p,
int r,
Progressable rep)
Same as
IndexedSorter.sort(IndexedSortable,int,int) , but indicate progress
periodically. |
protected static int getMaxDepth(int x)
public void sort(IndexedSortable s, int p, int r)
getMaxDepth(int)
,
then switch to HeapSort
.public void sort(IndexedSortable s, int p, int r, Progressable rep)
IndexedSorter.sort(IndexedSortable,int,int)
, but indicate progress
periodically.sort
在接口中 IndexedSorter
IndexedSorter.sort(IndexedSortable,int,int)
Copyright © 2009 The Apache Software Foundation