|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.libs.MergeSort
Merge sort implementation for various Java data primitives
Constructor Summary | |
---|---|
MergeSort()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] s)
|
static void |
sort(double[] array,
int start_index,
int count)
Do merge sort on range of values in a given double array. |
static void |
sort(double[] array,
int start_index,
java.lang.Object[] objset,
int obj_index,
int count)
Do merge sort on range of values in a given double array. |
static void |
sort(float[] array,
int start_index,
int count)
Do merge sort on range of values in a given float array. |
static void |
sort(float[] array,
int start_index,
java.lang.Object[] objset,
int obj_index,
int count)
Do merge sort on range of values in a given float array. |
static void |
sort(int[] array,
int start_index,
int count)
Do merge sort on range of values in a given int array. |
static void |
sort(int[] array,
int start_index,
java.lang.Object[] objset,
int obj_index,
int count)
Do merge sort on range of values in a given int array. |
static void |
sort(long[] array,
int start_index,
int count)
Do merge sort on range of values in a given long array. |
static void |
sort(long[] array,
int start_index,
java.lang.Object[] objset,
int obj_index,
int count)
Do merge sort on range of values in a given long array. |
static void |
sort(java.lang.Object[] array,
int start_index,
java.lang.Object[] objset,
int obj_index,
int count,
ObjectComparator rsi)
Do merge sort on range of values in a given String array, using a given collator for sorting. |
static void |
sort(short[] array,
int start_index,
int count)
Do merge sort on range of values in a given short array. |
static void |
sort(short[] array,
int start_index,
java.lang.Object[] objset,
int obj_index,
int count)
Do merge sort on range of values in a given short array. |
static void |
sort(java.lang.String[] array,
int start_index,
int count)
Do merge sort on range of values in a given String array, using a lexigraphical sort (non-locale specific). |
static void |
sort(java.lang.String[] array,
int start_index,
java.lang.Object[] objset,
int obj_index,
java.text.CollationKey[] colkeyset,
int col_index,
int count)
Do merge sort on range of values in a given String array, using a given collator for sorting. |
static void |
sort(java.lang.String[] array,
int start_index,
java.lang.Object[] objset,
int obj_index,
int count)
Do merge sort on range of values in a given String array, using a lexigraphical sort (non-locale specific). |
static void |
sort(java.lang.String[] array,
int start_index,
java.lang.Object[] objset,
int obj_index,
int count,
java.text.Collator col)
Do merge sort on range of values in a given String array, using a given collator for sorting. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MergeSort()
Method Detail |
public static void sort(java.lang.String[] array, int start_index, int count)
array
- - array of valuesstart_index
- - index of first value to sortcount
- - number of elements to sortpublic static void sort(java.lang.String[] array, int start_index, java.lang.Object[] objset, int obj_index, int count)
array
- - array of values to be sortedstart_index
- - index of first value to sortobjset
- - array of objects keyed by valuesobj_index
- - start index of first object keyed by valuescount
- - number of elements to sortpublic static void sort(java.lang.String[] array, int start_index, java.lang.Object[] objset, int obj_index, int count, java.text.Collator col)
array
- - array of values to be sortedstart_index
- - index of first value to sortobjset
- - array of objects keyed by valuesobj_index
- - start index of first object keyed by valuescount
- - number of elements to sortcol
- - collator to use for comparisonspublic static void sort(java.lang.String[] array, int start_index, java.lang.Object[] objset, int obj_index, java.text.CollationKey[] colkeyset, int col_index, int count)
array
- - array of values to be sortedstart_index
- - index of first value to sortobjset
- - array of objects keyed by valuesobj_index
- - start index of first object keyed by valuescolkeyset
- - array of collation keys for values in 'array'col_index
- - start index of first value in colkeysetcount
- - number of elements to sortpublic static void sort(long[] array, int start_index, int count)
array
- - array of valuesstart_index
- - index of first value to sortcount
- - number of elements to sortpublic static void sort(long[] array, int start_index, java.lang.Object[] objset, int obj_index, int count)
array
- - array of values to be sortedstart_index
- - index of first value to sortobjset
- - array of objects keyed by valuesobj_index
- - start index of first object keyed by valuescount
- - number of elements to sortpublic static void sort(int[] array, int start_index, int count)
array
- - array of valuesstart_index
- - index of first value to sortcount
- - number of elements to sortpublic static void sort(int[] array, int start_index, java.lang.Object[] objset, int obj_index, int count)
array
- - array of values to be sortedstart_index
- - index of first value to sortobjset
- - array of objects keyed by valuesobj_index
- - start index of first object keyed by valuescount
- - number of elements to sortpublic static void sort(short[] array, int start_index, int count)
array
- - array of valuesstart_index
- - index of first value to sortcount
- - number of elements to sortpublic static void sort(short[] array, int start_index, java.lang.Object[] objset, int obj_index, int count)
array
- - array of values to be sortedstart_index
- - index of first value to sortobjset
- - array of objects keyed by valuesobj_index
- - start index of first object keyed by valuescount
- - number of elements to sortpublic static void sort(float[] array, int start_index, int count)
array
- - array of valuesstart_index
- - index of first value to sortcount
- - number of elements to sortpublic static void sort(float[] array, int start_index, java.lang.Object[] objset, int obj_index, int count)
array
- - array of values to be sortedstart_index
- - index of first value to sortobjset
- - array of objects keyed by valuesobj_index
- - start index of first object keyed by valuescount
- - number of elements to sortpublic static void sort(double[] array, int start_index, int count)
array
- - array of valuesstart_index
- - index of first value to sortcount
- - number of elements to sortpublic static void sort(double[] array, int start_index, java.lang.Object[] objset, int obj_index, int count)
array
- - array of values to be sortedstart_index
- - index of first value to sortobjset
- - array of objects keyed by valuesobj_index
- - start index of first object keyed by valuescount
- - number of elements to sortpublic static void sort(java.lang.Object[] array, int start_index, java.lang.Object[] objset, int obj_index, int count, ObjectComparator rsi)
array
- - array of values to be sortedstart_index
- - index of first value to sortobjset
- - array of objects keyed by valuesobj_index
- - start index of first object keyed by valuescount
- - number of elements to sortpublic static void main(java.lang.String[] s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |