|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.util.Assert
public class Assert
This class implements assertion standards. Assertion may be used in cases where parameter or result validity should be checked, and the failure of such a check indicates a severe problem.
Nested Class Summary | |
---|---|
static class |
Assert.AssertionFailureException
This exception is thrown when an assertion failure occurs. |
Field Summary | |
---|---|
static boolean |
INSTRUMENTED
|
Constructor Summary | |
---|---|
Assert()
|
Method Summary | |
---|---|
static void |
isFalse(boolean bCondition)
Assert that the specified condition is false. |
static void |
isFalse(boolean bCondition,
java.lang.String sMessage)
Assert that the specified condition is false. |
static void |
isTrue(boolean bCondition)
Assert that the specified condition is true. |
static void |
isTrue(boolean bCondition,
java.lang.String sMessage)
Assert that the specified condition is true. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean INSTRUMENTED
Constructor Detail |
---|
public Assert()
Method Detail |
---|
public static void isTrue(boolean bCondition)
bCondition
- the condition to assertpublic static void isFalse(boolean bCondition)
bCondition
- the condition to assertpublic static void isTrue(boolean bCondition, java.lang.String sMessage)
bCondition
- the condition to assertsMessage
- message for exception on assertion failurepublic static void isFalse(boolean bCondition, java.lang.String sMessage)
bCondition
- the condition to assertsMessage
- message for exception on assertion failure
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |