|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.lenya.util.Assert
public final class Assert
Assertion utility.
| Constructor Summary | |
|---|---|
Assert()
|
|
| Method Summary | |
|---|---|
static void |
isTrue(java.lang.String expression,
boolean value)
|
static void |
notNull(java.lang.Object object)
|
static void |
notNull(java.lang.String parameterName,
java.lang.Object object)
|
| 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 notNull(java.lang.String parameterName,
java.lang.Object object)
parameterName - The parameter name to use in the exception.object - The object.
java.lang.RuntimeException - if the object is null.public static final void notNull(java.lang.Object object)
parameterName - The parameter name to use in the exception.object - The object.
java.lang.RuntimeException - if the object is null.
public static final void isTrue(java.lang.String expression,
boolean value)
expression - The expression to check.value - The value.
java.lang.RuntimeException - if the value is not true.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||