public final class Utils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
checkListElementNotNull(List<T> list,
Object errorMessage)
Throws a
NullPointerException if any of the list elements is null. |
public static <T> void checkListElementNotNull(List<T> list, @Nullable Object errorMessage)
NullPointerException if any of the list elements is null.list - the argument list to check for null.errorMessage - the message to use for the exception. Will be converted to a string using
String.valueOf(Object).