Sorter.QuickSorter<T>| Constructor and Description |
|---|
QuickSorter(Comparator<? super T> c) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<? super T>> |
quickSort(T[] array,
int start,
int end)
Sort the specified range of an array of object that implement the Comparable
interface.
|
static <T> void |
quickSort(T[] array,
int start,
int end,
Comparator<T> comp)
Sorts the specified range in the array in a specified order.
|
void |
sort(T[] array,
int start,
int end) |
public QuickSorter(Comparator<? super T> c)
public static <T> void quickSort(T[] array,
int start,
int end,
Comparator<T> comp)
array - the array to be sorted.start - the start index to sort.end - the last + 1 index to sort.comp - the comparator.IllegalArgumentException - if start > end.ArrayIndexOutOfBoundsException - if start < 0 or end > array.length.public static <T extends Comparable<? super T>> void quickSort(T[] array, int start, int end)
T - The type of object.array - the array.start - the first index.end - the last index (exclusive).Copyright © 2010-2016 Stardog Union. All Rights Reserved.