|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjdsl.core.ref.Assertion
Helps to check invariant conditions in program and check correctness of implementation. Warning: not thread safe. Undefined behavior if several threads fail on assertion checks simultaneously.
| Method Summary | |
static void |
check(boolean mustBeTrue)
Deprecated. Never use this method to indicate bad user input; this method is for asserting internal correctness of the implementation only. |
static void |
check(boolean mustBeTrue,
String message)
Deprecated. Never use this method to indicate bad user input; this method is for asserting internal correctness of the implementation only. |
| 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 mustBeTrue)
throws AssertionException
mustBeTrue - expression that is assumed to be true
AssertionException - If mustBeTrue is false
public static void check(boolean mustBeTrue,
String message)
throws AssertionException
mustBeTrue - expression that is assumed to be truemessage - description of the problem
AssertionException - If mustBeTrue is false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||