public final class Checks
extends java.lang.Object
For internal usage only!
| Modifier and Type | Method and Description |
|---|---|
static void |
checkNotEmpty(java.lang.String value,
java.lang.String message)
Checks that passed string is not null and not empty,
throws
NullPointerException or IllegalStateException with passed message
if string is null or empty. |
static void |
checkNotNull(java.lang.Object object,
java.lang.String message)
Checks that passed reference is not null,
throws
NullPointerException with passed message if reference is null |
public static void checkNotNull(@Nullable
java.lang.Object object,
@NonNull
java.lang.String message)
NullPointerException with passed message if reference is nullobject - to checkmessage - exception message if object is nullpublic static void checkNotEmpty(@Nullable
java.lang.String value,
@NonNull
java.lang.String message)
NullPointerException or IllegalStateException with passed message
if string is null or empty.value - a string to checkmessage - exception message if object is null