public final class Validate
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
Validate() |
| Modifier and Type | Method and Description |
|---|---|
static void |
notNull(java.lang.Object obj,
java.lang.String message)
Checks that object is not null, throws exception if it is.
|
static void |
notNullAndNoNullValues(java.lang.Object[] objects,
java.lang.String message)
Checks that the specified array is not null or contain any null values.
|
static void |
notNullOrEmpty(java.lang.String string,
java.lang.String message)
Checks that the specified String is not null or empty, throws exception if it is.
|
public static void notNull(java.lang.Object obj,
java.lang.String message)
throws java.lang.IllegalArgumentException
obj - The object to checkmessage - The exception messagejava.lang.IllegalArgumentException - Thrown if obj is nullpublic static void notNullOrEmpty(java.lang.String string,
java.lang.String message)
throws java.lang.IllegalArgumentException
string - The object to checkmessage - The exception messagejava.lang.IllegalArgumentException - Thrown if obj is nullpublic static void notNullAndNoNullValues(java.lang.Object[] objects,
java.lang.String message)
objects - The object to checkmessage - The exception message