|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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,
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,
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 expression
public static final void isTrue(boolean expression,
String message)
expression - a boolean expressionmessage - the message of the exception
public static final void isFalse(boolean expression,
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 | ||||||||