public final class Sort extends Object
| Constructor and Description |
|---|
Sort() |
| Modifier and Type | Method and Description |
|---|---|
static void |
reverse(double[] values,
int n)
Reverse the first n elements of the given array.
|
static void |
reverse(long[] values,
int n)
Reverse the first n elements of the given array.
|
static void |
stableSort(double[] keys,
long[] values,
int n)
Stable sort two arrays.
|
public static void stableSort(double[] keys,
long[] values,
int n)
keys - array to be sortedvalues - array to be permuted the same wayn - number of elements to sort from the beginning of the arrayspublic static void reverse(double[] values,
int n)
values - array to be reversedn - number of elements to reversepublic static void reverse(long[] values,
int n)
values - array to be reversedn - number of elements to reverseCopyright © 2015–2024 The Apache Software Foundation. All rights reserved.