public class Util
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
requireNonNull(T o)
Returns
o if non-null, or throws NullPointerException. |
static <T> T |
requireNonNull(T o,
java.lang.String message)
Returns
o if non-null, or throws NullPointerException
with the given detail message. |