|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--Opus5.Bounds
Provides one static method to simplify array-bounds checking.
| Constructor Summary | |
Bounds()
|
|
| Method Summary | |
static void |
check(int i,
int base,
int length)
Checks whether the specified index falls in the specified range. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Bounds()
| Method Detail |
public static void check(int i,
int base,
int length)
base <= i < (base+length).i - The index to check.base - The smallest valid index.length - The range of values allowed.java.lang.IndexOutOfBoundsException - If the index is out of bounds.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||