@Test public void testShort() { int[] order = new int[6]; double[] values = new double[6]; for (int i = 0; i < 6; i++) { values[i] = 1; } Sort.sort(order, values); checkOrder(order, values); values[0] = 0.8; values[1] = 0.3; Sort.sort(order, values); checkOrder(order, values); values[5] = 1.5; values[4] = 1.2; Sort.sort(order, values); checkOrder(order, values); }
@SuppressWarnings("WeakerAccess") public static void sort(int[] order, double[] values) { sort(order, values, 0, values.length); }
Sort { @SuppressWarnings("WeakerAccess") public static void sort(int[] order, double[] values) { sort(order, values, 0, values.length); } }
Sort { @SuppressWarnings("WeakerAccess") public static void sort(int[] order, double[] values) { sort(order, values, 0, values.length); }  }
Sort { @SuppressWarnings("WeakerAccess") public static void sort(int[] order, double[] values) { sort(order, values, 0, values.length); }  @SuppressWarnings("WeakerAccess") static void sort(int[] order, double[] values); @SuppressWarnings("WeakerAccess") static void sort(int[] order, double[] values, int n); @SuppressWarnings("WeakerAccess") static void sort(int[] order, double[] values, int start, int n); @SuppressWarnings("WeakerAccess") static void sort(double[] key, double[] ... values); @SuppressWarnings("WeakerAccess") static void sort(double[] key, int start, int n, double[]... values); @SuppressWarnings("UnusedDeclaration") static void checkPartition(int[] order, double[] values, double pivotValue, int start, int low, int high, int end); @SuppressWarnings("WeakerAccess") static void reverse(int[] order); @SuppressWarnings("WeakerAccess") static void reverse(int[] order, int offset, int length); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static void reverse(double[] order, int offset, int length); }
Sort { @SuppressWarnings("WeakerAccess") public static void sort(int[] order, double[] values) { sort(order, values, 0, values.length); }  @SuppressWarnings("WeakerAccess") static void sort(int[] order, double[] values); @SuppressWarnings("WeakerAccess") static void sort(int[] order, double[] values, int n); @SuppressWarnings("WeakerAccess") static void sort(int[] order, double[] values, int start, int n); @SuppressWarnings("WeakerAccess") static void sort(double[] key, double[] ... values); @SuppressWarnings("WeakerAccess") static void sort(double[] key, int start, int n, double[]... values); @SuppressWarnings("UnusedDeclaration") static void checkPartition(int[] order, double[] values, double pivotValue, int start, int low, int high, int end); @SuppressWarnings("WeakerAccess") static void reverse(int[] order); @SuppressWarnings("WeakerAccess") static void reverse(int[] order, int offset, int length); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static void reverse(double[] order, int offset, int length);  }