fr.dyade.aaa.util.Arrays Class Reference

List of all members.

Static Public Member Functions

static void sort (short[] a)
static void sort (short[] a, int fromIndex, int toIndex)
static int binarySearch (short[] a, int key)
static boolean equals (short[] a, short a2[])

Detailed Description

This class contains various methods for sorting and searching int arrays.

Definition at line 25 of file Arrays.java.


Member Function Documentation

static void fr.dyade.aaa.util.Arrays.sort ( short[]  a  )  [static]

Sorts the specified array of ints into ascending numerical order. The sorting algorithm is a tuned quicksort.

Parameters:
a the array to be sorted.

Definition at line 32 of file Arrays.java.

static void fr.dyade.aaa.util.Arrays.sort ( short[]  a,
int  fromIndex,
int  toIndex 
) [static]

Sorts the specified range of the specified array of ints into ascending numerical order.

Definition at line 40 of file Arrays.java.

static int fr.dyade.aaa.util.Arrays.binarySearch ( short[]  a,
int  key 
) [static]

Searches the specified array of ints for the specified value using the binary search algorithm. The array must be sorted (as by the sort method, above) prior to making this call.

Definition at line 147 of file Arrays.java.

static boolean fr.dyade.aaa.util.Arrays.equals ( short[]  a,
short  a2[] 
) [static]

Returns true if the two specified arrays of shorts are equal to one another.

Definition at line 169 of file Arrays.java.


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 16:17:17 2008 for joram by  doxygen 1.5.0