public final class Assert extends Object
| Modifier and Type | Method and Description |
|---|---|
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. |
public static void isNull(Object object, String message) throws IllegalArgumentException
Object is not null.IllegalArgumentExceptionpublic static void notNull(Object object, String message) throws IllegalArgumentException
Object is null.IllegalArgumentExceptionpublic static void assertTrue(boolean value,
String message)
throws IllegalArgumentException
IllegalArgumentExceptionpublic static void assertFalse(boolean value,
String message)
throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2021 OCPsoft. All rights reserved.