public abstract class Assert
extends java.lang.Object
| Constructor and Description |
|---|
Assert() |
| Modifier and Type | Method and Description |
|---|---|
static void |
notNull(java.lang.Object object,
java.lang.String message)
Assert that an object is not
null . |
public static void notNull(java.lang.Object object,
java.lang.String message)
null .
Assert.notNull(clazz, "The class must not be null");
object - the object to checkmessage - the exception message to use if the assertion failsjava.lang.IllegalArgumentException - if the object is nullCopyright © 2019. All Rights Reserved.