net.esper.util
Class AssertionFacility

java.lang.Object
  extended by net.esper.util.AssertionFacility

public class AssertionFacility
extends Object

Simple facility for asserting at runtime.


Constructor Summary
AssertionFacility()
           
 
Method Summary
static void assertFalse(boolean value, String message)
          Assert the value is false and raise exception if true.
static void assertTrue(boolean value, 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

AssertionFacility

public AssertionFacility()
Method Detail

assertTrue

public static void assertTrue(boolean value,
                              String message)
                       throws AssertionException
Assert the value is true and raise exception if false.

Parameters:
value - - boolean to check
message - - message to place in exception
Throws:
AssertionException - thrown if value is false

assertFalse

public static void assertFalse(boolean value,
                               String message)
                        throws AssertionException
Assert the value is false and raise exception if true.

Parameters:
value - - boolean to check
message - - message to place in exception
Throws:
AssertionException - thrown if value is true