|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--multex.Assertion
Tool for checking unexpected programming errors
| Inner Class Summary | |
static interface |
Assertion.Failure
Indicates that an assertion failed. |
| Method Summary | |
static void |
check(boolean i_condition,
java.lang.String i_name)
Checks, that i_condition holds. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Method Detail |
public static void check(boolean i_condition,
java.lang.String i_name)
throws Assertion.Failure
if(!condition){
throw new Assertion.Failure(name, stringPar1, new Integer(intPar2));
}
This should not be committed to a check-Method, because creating a new
capsule object for each parameter of a primitive type involves to much
overhead in non-error cases, too.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||