|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectariba.util.core.Sort
ariba.util.core.IntCompanionSort
public class IntCompanionSort
provides functions for sorting arrays of objects, with integer companion arrays
Field Summary |
---|
Fields inherited from class ariba.util.core.Sort |
---|
SortAscending, SortDescending, SortNone |
Method Summary | |
---|---|
static void |
objects(java.lang.Object[] a,
int[] c1,
Compare c)
Sort two arrays in ascending order, using one array for the keys. |
static void |
objects(java.lang.Object[] a,
int[] c1,
Compare c,
int dir)
Sort two arrays in a specified order, using one array for the keys. |
static void |
objects(java.lang.Object[] a,
int[] c1,
int[] c2,
Compare c)
Sort three arrays in ascending order, using one array for the keys. |
static void |
objects(java.lang.Object[] a,
int[] c1,
int[] c2,
Compare c,
int dir)
Sort three arrays in a specified order, using one array for the keys. |
static void |
objects(java.lang.Object[] a,
int[] c1,
int[] c2,
int first,
int n,
Compare c)
Sort a range of elements in three arrays in ascending order, using one array for the keys. |
static void |
objects(java.lang.Object[] a,
int[] c1,
int[] c2,
int first,
int n,
Compare c,
int dir)
Sort a range of elements in three arrays in a specified order, using one array for the keys. |
Methods inherited from class ariba.util.core.Sort |
---|
getSwapDirection, objects, objects, objects, objects, objects, objects, objects, objects, reverseCompare |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void objects(java.lang.Object[] a, int[] c1, Compare c)
a
- an array of objects to sortc1
- a companion int array to sort in parallel with the array
a. The values in c1 do not affect the sort.c
- an object to that implements the comparison interfacepublic static void objects(java.lang.Object[] a, int[] c1, Compare c, int dir)
a
- an array of objects to sortc1
- a companion int array to sort in parallel with the array
a. The values in c1 do not affect the sort.c
- an object to that implements the comparison interfacedir
- the direction to sort the objects in. Must be
SortAscending or SortDescendingSort.SortAscending
,
Sort.SortDescending
public static void objects(java.lang.Object[] a, int[] c1, int[] c2, Compare c)
a
- an array of objects to sortc1
- a companion int array to sort in parallel with the array
a. The values in c1 do not affect the sort.c2
- a companion int array to sort in parallel with the array
a. The values in c2 do not affect the sort.c
- an object to that implements the comparison interfacepublic static void objects(java.lang.Object[] a, int[] c1, int[] c2, Compare c, int dir)
a
- an array of objects to sortc1
- a companion int array to sort in parallel with the array
a. The values in c1 do not affect the sort.c2
- a companion int array to sort in parallel with the array
a. The values in c2 do not affect the sort.c
- an object to that implements the comparison interfacedir
- the direction to sort the objects in. Must be
SortAscending or SortDescendingSort.SortAscending
,
Sort.SortDescending
public static void objects(java.lang.Object[] a, int[] c1, int[] c2, int first, int n, Compare c)
a
- an array of objects to sortc1
- a companion int array to sort in parallel with the array
a. The values in c1 do not affect the sort.c2
- a companion int array to sort in parallel with the array
a. The values in c2 do not affect the sort.first
- the first element to sortn
- the number of elements to sortc
- an object to that implements the comparison interfacepublic static void objects(java.lang.Object[] a, int[] c1, int[] c2, int first, int n, Compare c, int dir)
a
- an array of objects to sortc1
- a companion int array to sort in parallel with the array
a. The values in c1 do not affect the sort.c2
- a companion int array to sort in parallel with the array
a. The values in c2 do not affect the sort.first
- the first element to sortn
- the number of elements to sortc
- an object to that implements the comparison interfacedir
- the direction to sort the objects in. Must be
SortAscending or SortDescendingSort.SortAscending
,
Sort.SortDescending
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |