|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.dyade.aaa.util.Arrays
This class contains various methods for sorting and searching int arrays.
| Constructor Summary | |
Arrays()
|
|
| Method Summary | |
static int |
binarySearch(short[] a,
int key)
Searches the specified array of ints for the specified value using the binary search algorithm. |
static boolean |
equals(short[] a,
short[] a2)
Returns true if the two specified arrays of shorts are equal to one another. |
static void |
sort(short[] a)
Sorts the specified array of ints into ascending numerical order. |
static void |
sort(short[] a,
int fromIndex,
int toIndex)
Sorts the specified range of the specified array of ints into ascending numerical order. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Arrays()
| Method Detail |
public static void sort(short[] a)
a - the array to be sorted.
public static void sort(short[] a,
int fromIndex,
int toIndex)
public static int binarySearch(short[] a,
int key)
public static boolean equals(short[] a,
short[] a2)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||