|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.util.AssertionFacility
public class AssertionFacility
Simple facility for asserting at runtime.
Constructor Summary | |
---|---|
AssertionFacility()
|
Method Summary | |
---|---|
static void |
assertFalse(boolean value,
java.lang.String message)
Assert the value is false and raise exception if true. |
static void |
assertTrue(boolean value,
java.lang.String message)
Assert the value is true and raise exception if false. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssertionFacility()
Method Detail |
---|
public static void assertTrue(boolean value, java.lang.String message) throws AssertionException
value
- - boolean to checkmessage
- - message to place in exception
AssertionException
- thrown if value is falsepublic static void assertFalse(boolean value, java.lang.String message) throws AssertionException
value
- - boolean to checkmessage
- - message to place in exception
AssertionException
- thrown if value is true
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |