|
![]() |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.autonomy.utilities.NumberUtils
Library of functions specifically for working with numbers
| Field Summary | |
static char[] |
acHexDigits
|
| Constructor Summary | |
NumberUtils()
|
|
| Method Summary | |
static java.lang.String |
byteToHexString(byte b)
Converts a byte to a string containg exactly two hexadecimal numbers |
static byte |
parseByteToHex(java.lang.String sb)
Converts a two character hex string to a byte |
static int[] |
quickSort(int[] anToSort)
Sorts ints into numerical order |
static long[] |
quickSort(long[] alnToSort)
Sorts longs into numerical order |
static int[] |
quickSortWithMirror(int[] anToSort,
int[] anToMirror)
Sorts ints into numerical order, mirroring the changes in the second array This functon will not do anything if the two arrays are not the same size |
static long[] |
quickSortWithMirror(long[] alnToSort,
long[] alnToMirror)
Sorts ints into numerical order, mirroring the changes in the second array This functon will not do anything if the two arrays are not the same size |
static long[] |
quickSortWithMirror(long[] alnToSort,
java.lang.String[] asToMirror)
Sorts ints into numerical order, mirroring the changes in the second array This functon will not do anything if the two arrays are not the same size |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final char[] acHexDigits
| Constructor Detail |
public NumberUtils()
| Method Detail |
public static int[] quickSort(int[] anToSort)
anToSort - array to sort
public static long[] quickSort(long[] alnToSort)
alnToSort - array to sort
public static int[] quickSortWithMirror(int[] anToSort,
int[] anToMirror)
anToSort - array to sortanToMirror - array to mirror changes in
public static long[] quickSortWithMirror(long[] alnToSort,
java.lang.String[] asToMirror)
alnToSort - array to sortasToMirror - String array to mirror changes in
public static long[] quickSortWithMirror(long[] alnToSort,
long[] alnToMirror)
alnToSort - array to sortalnToMirror - array to mirror changes in
public static java.lang.String byteToHexString(byte b)
public static byte parseByteToHex(java.lang.String sb)
throws java.lang.NumberFormatException
java.lang.NumberFormatException
|
![]() |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||