public final class HeapSort extends Object implements IndexedSorter
Constructor and Description |
---|
HeapSort() |
Modifier and Type | Method and Description |
---|---|
void |
sort(IndexedSortable s) |
void |
sort(IndexedSortable s,
int p,
int r)
Sort the items accessed through the given IndexedSortable over the given range of logical
indices.
|
public void sort(IndexedSortable s, int p, int r)
IndexedSorter
sort
in interface IndexedSorter
IndexedSortable.compare(int, int)
,
IndexedSortable.swap(int, int)
public void sort(IndexedSortable s)
sort
in interface IndexedSorter
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.