public final class Checks
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
Checks() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
notNull(T value)
Checks that the given value is not
null. |
static <T> T |
notNull(T value,
java.lang.String message)
Checks that the given value is not
null, using the given message
as the exception message if an exception is thrown. |
public static <T> T notNull(T value)
null.value - object reference to checknulljava.lang.NullPointerException - if value is nullpublic static <T> T notNull(T value,
java.lang.String message)
null, using the given message
as the exception message if an exception is thrown.value - object reference to checkmessage - message to use if value is nullnulljava.lang.NullPointerException - if value is null