|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbot.Assert
Assert is a library of assertion routines. Asserts are used in code so you can be sure something is true before proceeding. If it is not true, the assert kills the program.
| Constructor Summary | |
Assert()
|
|
| Method Summary | |
static void |
check(boolean b)
If b is not true, die. |
static void |
check(boolean b,
String msg)
If b is not true, die. |
static void |
error()
Just kill the program. |
static void |
error(String msg)
Just kill the program. |
static void |
note(boolean b,
String msg)
If b is not true, print out a message. |
static void |
note(String msg)
Print a message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Assert()
| Method Detail |
public static void error()
public static void error(String msg)
msg - What to say as you go down.public static void check(boolean b)
b - It better be true.
public static void check(boolean b,
String msg)
b - It better be true.msg - What to say if you go down.
public static void note(boolean b,
String msg)
b - It should be true.msg - What to say if b is not true.public static void note(String msg)
msg - What to say.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||