/** * Perform a merge sort on a range of a byte array using a specified ordering. * @param array the array. * @param start the first index. * @param end the last index (exclusive). * @param comp the comparator object. */ public static void mergeSort(byte[] array, int start, int end, ByteComparator comp) { checkBounds(array.length, start, end); byte[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
/** * Perform a merge sort on a range of a int array using numerical order. * @param array the array. * @param start the first index. * @param end the last index (exclusive). * @param comp the comparator object. */ public static void mergeSort(int[] array, int start, int end, IntComparator comp) { checkBounds(array.length, start, end); int[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
/** * Perform a merge sort on a range of a long array using a specified ordering. * @param array the array. * @param start the first index. * @param end the last index (exclusive). * @param comp the comparator object. */ public static void mergeSort(long[] array, int start, int end, LongComparator comp) { checkBounds(array.length, start, end); long[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
/** * Perform a merge sort on a range of a float array using a specified ordering. * @param array the array. * @param start the first index. * @param end the last index (exclusive). * @param comp the comparator object. */ public static void mergeSort(float[] array, int start, int end, FloatComparator comp) { checkBounds(array.length, start, end); float[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
/** * Perform a merge sort on a range of a double array using a specified ordering. * @param array the array. * @param start the first index. * @param end the last index (exclusive). * @param comp the comparator object. */ public static void mergeSort(double[] array, int start, int end, DoubleComparator comp) { checkBounds(array.length, start, end); double[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
/** * Perform a merge sort on a range of a char array using a specified ordering. * @param array the array. * @param start the first index. * @param end the last index (exclusive). * @param comp the comparator object. */ public static void mergeSort(char[] array, int start, int end, CharComparator comp) { checkBounds(array.length, start, end); char[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
public static void mergeSort(short[] array, int start, int end, ShortComparator comp) { checkBounds(array.length, start, end); short[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
/** * Perform a merge sort on a range of a float array using a specified ordering. * @param array the array. * @param start the first index. * @param end the last index (exclusive). * @param comp the comparator object. */ public static void mergeSort(float[] array, int start, int end, FloatComparator comp) { checkBounds(array.length, start, end); float[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
public static void mergeSort(short[] array, int start, int end, ShortComparator comp) { checkBounds(array.length, start, end); short[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
/** * Perform a merge sort on a range of a int array using numerical order. * @param array the array. * @param start the first index. * @param end the last index (exclusive). * @param comp the comparator object. */ public static void mergeSort(int[] array, int start, int end, IntComparator comp) { checkBounds(array.length, start, end); int[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
/** * Perform a merge sort on a range of a long array using a specified ordering. * @param array the array. * @param start the first index. * @param end the last index (exclusive). * @param comp the comparator object. */ public static void mergeSort(long[] array, int start, int end, LongComparator comp) { checkBounds(array.length, start, end); long[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
/** * Perform a merge sort on a range of a char array using a specified ordering. * @param array the array. * @param start the first index. * @param end the last index (exclusive). * @param comp the comparator object. */ public static void mergeSort(char[] array, int start, int end, CharComparator comp) { checkBounds(array.length, start, end); char[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
/** * Perform a merge sort on a range of a char array using a specified ordering. * @param array the array. * @param start the first index. * @param end the last index (exclusive). * @param comp the comparator object. */ public static void mergeSort(char[] array, int start, int end, CharComparator comp) { checkBounds(array.length, start, end); char[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
/** * Perform a merge sort on a range of a double array using a specified ordering. * @param array the array. * @param start the first index. * @param end the last index (exclusive). * @param comp the comparator object. */ public static void mergeSort(double[] array, int start, int end, DoubleComparator comp) { checkBounds(array.length, start, end); double[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
/** * Perform a merge sort on a range of a byte array using a specified ordering. * @param array the array. * @param start the first index. * @param end the last index (exclusive). * @param comp the comparator object. */ public static void mergeSort(byte[] array, int start, int end, ByteComparator comp) { checkBounds(array.length, start, end); byte[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
/** * Perform a merge sort on a range of a long array using a specified ordering. * @param array the array. * @param start the first index. * @param end the last index (exclusive). * @param comp the comparator object. */ public static void mergeSort(long[] array, int start, int end, LongComparator comp) { checkBounds(array.length, start, end); long[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
/** * Perform a merge sort on a range of a double array using a specified ordering. * @param array the array. * @param start the first index. * @param end the last index (exclusive). * @param comp the comparator object. */ public static void mergeSort(double[] array, int start, int end, DoubleComparator comp) { checkBounds(array.length, start, end); double[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
public static void mergeSort(short[] array, int start, int end, ShortComparator comp) { checkBounds(array.length, start, end); short[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
/** * Perform a merge sort on a range of a int array using numerical order. * @param array the array. * @param start the first index. * @param end the last index (exclusive). * @param comp the comparator object. */ public static void mergeSort(int[] array, int start, int end, IntComparator comp) { checkBounds(array.length, start, end); int[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }
/** * Perform a merge sort on a range of a float array using a specified ordering. * @param array the array. * @param start the first index. * @param end the last index (exclusive). * @param comp the comparator object. */ public static void mergeSort(float[] array, int start, int end, FloatComparator comp) { checkBounds(array.length, start, end); float[] out = Arrays.copyOf(array, array.length); mergeSort(out, array, start, end, comp); }