Arrays
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private int[] | |
| private int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int[] | |
| private static <T> T[] | |
| private static <T, U> T[] | |
| private int[] | |
| private void | |
| private <T> void | |
| private static void | |
| public <T> int[] | |
| private <T> int[] | |
| public <T> int[] | |
| public int[] | |
| private void | |
| private void |
| INSERTIONSORT_THRESHOLD | back to summary |
|---|---|
| private static final int INSERTIONSORT_THRESHOLD | |
| permutation | back to summary |
|---|---|
| private int[] permutation | |
| reversePermutation | back to summary |
|---|---|
| private int[] reversePermutation | |
| SortHelper | back to summary |
|---|---|
| public SortHelper() | |
| copyOfRange | back to summary |
|---|---|
| private static int[] copyOfRange(int[] original, int from, int to) | |
| copyOfRange | back to summary |
|---|---|
| private static <T> T[] copyOfRange(T[] original, int from, int to) | |
| copyOfRange | back to summary |
|---|---|
| private static <T, U> T[] copyOfRange(U[] original, int from, int to, Class<? extends T[]> newType) | |
| initPermutation | back to summary |
|---|---|
| private int[] initPermutation(int length) | |
| mergeSort | back to summary |
|---|---|
| private void mergeSort(int[] src, int[] dest, int low, int high, int off) | |
| mergeSort | back to summary |
|---|---|
| private <T> void mergeSort(T[] src, T[] dest, int low, int high, int off, Comparator<? super T> comparator) | |
| rangeCheck | back to summary |
|---|---|
| private static void rangeCheck(int arrayLen, int fromIndex, int toIndex) | |
| sort | back to summary |
|---|---|
| public <T> int[] sort(List<T> list, Comparator<? super T> comparator) | |
| sort | back to summary |
|---|---|
| private <T> int[] sort(T[] items, Comparator<? super T> comparator) | |
| sort | back to summary |
|---|---|
| public <T> int[] sort(T[] items, int fromIndex, int toIndex, Comparator<? super T> comparator) | |
| sort | back to summary |
|---|---|
| public int[] sort(int[] indices, int fromIndex, int toIndex) | |
| swap | back to summary |
|---|---|
| private void swap(int[] x, int a, int b) | |
| swap | back to summary |
|---|---|
| private void swap(Object[] x, int a, int b) | |