edu.mit.util
Class Assert
java.lang.Object
|
+--edu.mit.util.Assert
- public final class Assert
- extends Object
Assert is a library of assertion routines.
|
Method Summary |
static void |
isTrue(boolean b)
If the argument is true do nothing. |
static void |
isTrue(boolean b,
String msg)
If the argument is true do nothing. |
static void |
main(String[] args)
|
static void |
note(boolean b,
String msg)
Make a note if b is false. |
static void |
notNull(Object o)
If the argument is not null do nothing. |
static void |
notNull(Object o,
String msg)
If the argument is not null do nothing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_window
public static boolean m_window
Assert
public Assert()
isTrue
public static void isTrue(boolean b)
- If the argument is true do nothing. If the argument is false
then throw an execption.
isTrue
public static void isTrue(boolean b,
String msg)
- If the argument is true do nothing. If the argument is false
then throw an execption with msg embeded in it.
notNull
public static void notNull(Object o,
String msg)
- If the argument is not null do nothing. If the argument is null
then throw an execption with msg embeded in it.
notNull
public static void notNull(Object o)
- If the argument is not null do nothing. If the argument is null
then throw an execption.
note
public static void note(boolean b,
String msg)
- Make a note if b is false.
main
public static void main(String[] args)