|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object monitor.Assertion
public abstract class Assertion
Assertions that may be checked from time to time.
Field Summary | |
---|---|
protected java.lang.String |
message
|
Constructor Summary | |
---|---|
Assertion()
|
Method Summary | |
---|---|
void |
check()
Throw an AssertionError if the assertion is not true. |
static void |
check(boolean b)
Throw an AssertionError if the parameter is not true. |
static void |
check(boolean b,
java.lang.String message)
Throw an AssertionError if the boolean parameter is not true. |
abstract boolean |
isTrue()
This method says whether the assertion is true. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String message
Constructor Detail |
---|
public Assertion()
Method Detail |
---|
public abstract boolean isTrue()
public void check()
public static void check(boolean b)
public static void check(boolean b, java.lang.String message)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |