ostore.util
Class Assert
java.lang.Object
|
+--ostore.util.Assert
- public class Assert
- extends Object
Assert is a closure used to assert various things in the code
(this can be useful for debugging).
- Version:
- $Id: Assert.java,v 1.5 2001/11/30 03:34:45 hweather Exp $
- Author:
- Chris Wells
Method Summary |
static void |
assert(boolean b,
String msg)
Assert that a condition is true; if not, print out a message and die |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Assert
public Assert()
assert
public static void assert(boolean b,
String msg)
- Assert that a condition is true; if not, print out a message and die
- Parameters:
b
- == boolean to assert as truemsg
- == message to output to stderr if b is false