public final class ValidationUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
notNull(T value)
Require not null value or throw exception
|
static <T> T |
notNull(T value,
String message)
Require not null value or throw exception with the given message
|
public static <T> T notNull(@Nullable
T value)
T - type of valuevalue - the value to validatepublic static <T> T notNull(@Nullable
T value,
String message)
T - type of valuevalue - the value to validatemessage - the message to throw if value is nullCopyright © 2020. All rights reserved.