|
OCPsoft Common API 1.0.5.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocpsoft.common.util.Assert
public final class Assert
Utility methods for making precondition/postcondition assertions.
| Method Summary | |
|---|---|
static void |
assertFalse(boolean value,
String message)
Throw an exception if the given value is not false. |
static void |
assertTrue(boolean value,
String message)
Throw an exception if the given value is not true. |
static void |
isNull(Object object,
String message)
Throw an exception if the given Object is not null. |
static void |
notNull(Object object,
String message)
Throw an exception if the given Object is null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void isNull(Object object,
String message)
throws IllegalArgumentException
Object is not null.
IllegalArgumentException
public static void notNull(Object object,
String message)
throws IllegalArgumentException
Object is null.
IllegalArgumentException
public static void assertTrue(boolean value,
String message)
throws IllegalArgumentException
IllegalArgumentException
public static void assertFalse(boolean value,
String message)
throws IllegalArgumentException
IllegalArgumentException
|
OCPsoft Common API 1.0.5.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||