|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Sorter
Interface Sorter
An interface provided by various sorting classes.
Interface methods operate on arrays and List collections. Element types for arrays may be builtin types or objects
Arrays
,
Collections
Method Summary | ||
---|---|---|
void |
reverse(byte[] a)
Sort array using reverse natural (descending) order. |
|
void |
reverse(byte[] a,
int from,
int to)
Sort array using reverse natural (descending) order. |
|
void |
reverse(char[] a)
Sort array using reverse natural (descending) order. |
|
void |
reverse(char[] a,
int from,
int to)
Sort array using reverse natural (descending) order. |
|
void |
reverse(double[] a)
Sort array using reverse natural (descending) order. |
|
void |
reverse(double[] a,
int from,
int to)
Sort array using reverse natural (descending) order. |
|
void |
reverse(float[] a)
Sort array using reverse natural (descending) order. |
|
void |
reverse(float[] a,
int from,
int to)
Sort array using reverse natural (descending) order. |
|
void |
reverse(int[] a)
Sort array using reverse natural (descending) order. |
|
void |
reverse(int[] a,
int from,
int to)
Sort array using reverse natural (descending) order. |
|
|
reverse(java.util.List<T> a)
Sort List using reverse natural (descending) order. |
|
|
reverse(java.util.List<T> a,
int from,
int to)
|
|
void |
reverse(long[] a)
Sort array using reverse natural (descending) order. |
|
void |
reverse(long[] a,
int from,
int to)
Sort array using reverse natural (descending) order. |
|
void |
reverse(short[] a)
Sort array using reverse natural (descending) order. |
|
void |
reverse(short[] a,
int from,
int to)
Sort array using reverse natural (descending) order. |
|
|
reverse(T[] a)
Sort array using reverse natural (descending) order. |
|
|
reverse(T[] a,
int from,
int to)
Sort array using reverse natural (descending) order. |
|
void |
sort(byte[] a)
|
|
void |
sort(byte[] a,
int from,
int to)
|
|
void |
sort(char[] a)
|
|
void |
sort(char[] a,
int from,
int to)
|
|
void |
sort(double[] a)
|
|
void |
sort(double[] a,
int from,
int to)
|
|
void |
sort(float[] a)
|
|
void |
sort(float[] a,
int from,
int to)
|
|
void |
sort(int[] a)
|
|
void |
sort(int[] a,
int from,
int to)
|
|
|
sort(java.util.List<T> a)
|
|
|
sort(java.util.List<T> a,
java.util.Comparator<T> c)
|
|
|
sort(java.util.List<T> a,
int from,
int to)
|
|
|
sort(java.util.List<T> a,
int from,
int to,
java.util.Comparator<T> c)
|
|
void |
sort(long[] a)
|
|
void |
sort(long[] a,
int from,
int to)
|
|
void |
sort(short[] a)
|
|
void |
sort(short[] a,
int from,
int to)
|
|
|
sort(T[] a)
|
|
|
sort(T[] a,
java.util.Comparator<T> c)
|
|
|
sort(T[] a,
int from,
int to)
|
|
|
sort(T[] a,
int from,
int to,
java.util.Comparator<T> c)
|
|
void |
sortp(int[] p,
int[] a,
int from,
int to)
Sort array and return a permuted index vector. |
Method Detail |
---|
void sort(byte[] a)
a
- array upon which to operate.Arrays.sort(byte[])
void reverse(byte[] a)
a
- array upon which to operate.void sort(byte[] a, int from, int to)
a
- array upon which to operate.from
- starting array index starting array indexto
- ending array indexArrays.sort(byte[], int, int)
void reverse(byte[] a, int from, int to)
a
- array upon which to operate.from
- starting array index starting array indexto
- ending array index ending array indexvoid sort(char[] a)
a
- array upon which to operate.Arrays.sort(byte[])
void reverse(char[] a)
a
- array upon which to operate.void sort(char[] a, int from, int to)
a
- array upon which to operate.from
- starting array index starting array indexto
- ending array index ending array indexArrays.sort(byte[], int, int)
void reverse(char[] a, int from, int to)
a
- array upon which to operate.from
- starting array index starting array indexto
- ending array indexvoid sort(short[] a)
a
- array upon which to operate.Arrays.sort(short[])
void reverse(short[] a)
a
- array upon which to operate.void sort(short[] a, int from, int to)
a
- array upon which to operate.from
- starting array indexto
- ending array indexArrays.sort(short[], int, int)
void reverse(short[] a, int from, int to)
a
- array upon which to operate.from
- starting array indexto
- ending array indexvoid sort(int[] a)
a
- array upon which to operate.Arrays.sort(short[])
void reverse(int[] a)
a
- array upon which to operate.void sort(int[] a, int from, int to)
a
- array upon which to operate.from
- starting array indexto
- ending array indexArrays.sort(short[], int, int)
void sortp(int[] p, int[] a, int from, int to)
p
- the arraya
- array upon which to operate.from
- starting array indexto
- ending array indexvoid reverse(int[] a, int from, int to)
a
- array upon which to operate.from
- starting array indexto
- ending array indexvoid sort(long[] a)
a
- array upon which to operate.Arrays.sort(short[])
void reverse(long[] a)
a
- array upon which to operate.void sort(long[] a, int from, int to)
a
- array upon which to operate.from
- starting array indexto
- ending array indexArrays.sort(short[], int, int)
void reverse(long[] a, int from, int to)
a
- array upon which to operate.from
- starting array indexto
- ending array indexvoid sort(float[] a)
a
- array upon which to operate.Arrays.sort(short[])
void reverse(float[] a)
a
- array upon which to operate.void sort(float[] a, int from, int to)
a
- array upon which to operate.from
- starting array indexto
- ending array indexArrays.sort(short[], int, int)
void reverse(float[] a, int from, int to)
a
- array upon which to operate.from
- starting array indexto
- ending array indexvoid sort(double[] a)
a
- array upon which to operate.Arrays.sort(short[])
void reverse(double[] a)
a
- array upon which to operate.void sort(double[] a, int from, int to)
a
- array upon which to operate.from
- starting array indexto
- ending array indexArrays.sort(short[], int, int)
void reverse(double[] a, int from, int to)
a
- array upon which to operate.from
- starting array indexto
- ending array index<T extends java.lang.Comparable<T>> void sort(T[] a)
T
- data typea
- array upon which to operate.Arrays.sort(Object[])
<T extends java.lang.Comparable<T>> void reverse(T[] a)
T
- data typea
- array upon which to operate.<T extends java.lang.Comparable<T>> void sort(T[] a, int from, int to)
T
- data typea
- array upon which to operate.from
- starting array indexto
- ending array indexArrays.sort(Object[], int, int)
<T extends java.lang.Comparable<T>> void reverse(T[] a, int from, int to)
T
- data typea
- array upon which to operate.from
- starting array indexto
- ending array index<T extends java.lang.Comparable<T>> void sort(T[] a, java.util.Comparator<T> c)
T
- data typea
- array upon which to operate.c
- comparator used to do comparisonArrays.sort(Object[], Comparator)
<T extends java.lang.Comparable<T>> void sort(T[] a, int from, int to, java.util.Comparator<T> c)
T
- data typea
- array upon which to operate.from
- starting array indexto
- ending array indexc
- comparator used to do comparisonArrays.sort(Object[], int, int, Comparator)
<T extends java.lang.Comparable<T>> void sort(java.util.List<T> a)
T
- data typea
- array upon which to operate.Collections.sort(List)
<T extends java.lang.Comparable<T>> void reverse(java.util.List<T> a)
T
- data typea
- array upon which to operate.<T extends java.lang.Comparable<T>> void sort(java.util.List<T> a, int from, int to)
T
- data typea
- array upon which to operate.from
- starting array indexto
- ending array indexCollections.sort(List)
<T extends java.lang.Comparable<T>> void reverse(java.util.List<T> a, int from, int to)
T
- data typea
- array upon which to operate.from
- starting array indexto
- ending array index<T extends java.lang.Comparable<T>> void sort(java.util.List<T> a, java.util.Comparator<T> c)
T
- data typea
- array upon which to operate.c
- comparator used to do comparisonCollections.sort(List, Comparator)
<T extends java.lang.Comparable<T>> void sort(java.util.List<T> a, int from, int to, java.util.Comparator<T> c)
T
- data typea
- array upon which to operate.from
- starting array indexto
- ending array indexc
- comparator used to do comparisonCollections.sort(List, Comparator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |