|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rcm.util.BinarySearch
Binary search routines.
Field Summary | |
static Debug |
debug
|
Constructor Summary | |
BinarySearch()
|
Method Summary | |
static int |
search(int[] array,
int offset,
int length,
int x)
Search a sorted array of integers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static Debug debug
Constructor Detail |
public BinarySearch()
Method Detail |
public static int search(int[] array, int offset, int length, int x)
array
- Array of integersoffset
- Starting offset of subarray to searchlength
- Length of subarray to searchx
- Value to search for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |