org.knopflerfish.util.sort
public class Sort extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
sortFileArray(java.io.File[] a)
Sorts the specified array of File objects into ascending order, according
to the natural ordering of its elements.
|
static void |
sortFileArray(java.io.File[] a,
int fromIndex,
int toIndex)
Sorts the specified range of the specified array of File objects into
ascending order, according to the natural ordering of its elements.
|
static void |
sortFloatArray(java.lang.Float[] a)
Sorts the specified array of Float objects into ascending order,
according to the natural ordering of its elements.
|
static void |
sortFloatArray(java.lang.Float[] a,
int fromIndex,
int toIndex)
Sorts the specified range of the specified array of Float objects into
ascending order, according to the natural ordering of its elements.
|
static void |
sortIntegerArray(java.lang.Integer[] a)
Sorts the specified array of Integer objects into ascending order,
according to the natural ordering of its elements.
|
static void |
sortIntegerArray(java.lang.Integer[] a,
int fromIndex,
int toIndex)
Sorts the specified range of the specified array of Integer objects into
ascending order, according to the natural ordering of its elements.
|
static void |
sortStringArray(java.lang.String[] a)
Sorts the specified array of String objects into ascending order,
according to the natural ordering of its elements.
|
static void |
sortStringArray(java.lang.String[] a,
int fromIndex,
int toIndex)
Sorts the specified range of the specified array of String objects into
ascending order, according to the natural ordering of its elements.
|
public static void sortIntegerArray(java.lang.Integer[] a)
a - The array to be sorted.public static void sortIntegerArray(java.lang.Integer[] a,
int fromIndex,
int toIndex)
a - The array to be sorted.fromIndex - The index of the first element (inclusive) to be sorted.toIndex - The index of the last element (exclusive) to be sorted.public static void sortStringArray(java.lang.String[] a)
a - The array to be sorted.public static void sortStringArray(java.lang.String[] a,
int fromIndex,
int toIndex)
a - The array to be sorted.fromIndex - The index of the first element (inclusive) to be sorted.toIndex - The index of the last element (exclusive) to be sorted.public static void sortFileArray(java.io.File[] a)
a - The array to be sorted.public static void sortFileArray(java.io.File[] a,
int fromIndex,
int toIndex)
a - The array to be sorted.fromIndex - The index of the first element (inclusive) to be sorted.toIndex - The index of the last element (exclusive) to be sorted.public static void sortFloatArray(java.lang.Float[] a)
a - The array to be sorted.public static void sortFloatArray(java.lang.Float[] a,
int fromIndex,
int toIndex)
a - The array to be sorted.fromIndex - The index of the first element (inclusive) to be sorted.toIndex - The index of the last element (exclusive) to be sorted.