public static interface InplaceSort.Accessor
It is intended to be compatible with the like-named interface defined by
BinarySearch
, allowing a single implementation class for both.
Modifier and Type | Method and Description |
---|---|
int |
compare(int index1,
int index2)
Compares the values at two positions within the array-like structure.
|
int |
end()
The maximum bound of the search (exclusive).
|
int |
start()
The minimum bound of the search (inclusive).
|
void |
swap(int index1,
int index2)
Swaps the values at two positions within the array-like structure.
|
int start()
int end()
int compare(int index1, int index2)
void swap(int index1, int index2)