Package panda.utilities
Class ValidationUtils
java.lang.Object
panda.utilities.ValidationUtils
-
Method Summary
-
Method Details
-
notNull
public static <T> T notNull(@Nullable T value) Require not null value or throw exception- Type Parameters:
T- type of value- Parameters:
value- the value to validate- Returns:
- non null value
-
notNull
Require not null value or throw exception with the given message- Type Parameters:
T- type of value- Parameters:
value- the value to validatemessage- the message to throw if value is null- Returns:
- non null value
-