|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.util.Assert
public class Assert
Class for defining assertions.
Nested Class Summary | |
---|---|
static class |
Assert.Failed
|
Constructor Summary | |
---|---|
Assert()
|
Method Summary | |
---|---|
static void |
isFalse(boolean expression)
Throws an exception if the given expresion is true. |
static void |
isFalse(boolean expression,
java.lang.String message)
Throws an exception if the given expresion is true. |
static void |
isTrue(boolean expression)
Throws an exception if the given expresion is false. |
static void |
isTrue(boolean expression,
java.lang.String message)
Throws an exception if the given expresion is false. |
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 final void isTrue(boolean expression)
expression
- a boolean expressionpublic static final void isFalse(boolean expression)
expression
- a boolean expressionpublic static final void isTrue(boolean expression, java.lang.String message)
expression
- a boolean expressionmessage
- the message of the exceptionpublic static final void isFalse(boolean expression, java.lang.String message)
expression
- a boolean expressionmessage
- the message of the exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |