public final class Preconditions
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
checkNotNull(T reference)
Ensures that an object reference passed as a parameter to the calling
method is not null.
|
public static <T> T checkNotNull(T reference)
reference
- an object referencejava.lang.NullPointerException
- if reference
is null