public final class Preconditions
extends java.lang.Object
This class is an internal implementation detail only intended for use within spectator. It is subject to change without notice.
Modifier and Type | Method and Description |
---|---|
static void |
checkArg(boolean expression,
java.lang.String errMsg)
Ensures the truth of an expression involving the state of the calling instance.
|
static <T> T |
checkNotNull(T obj,
java.lang.String name)
Ensures the object reference is not null.
|
static void |
checkState(boolean expression,
java.lang.String errMsg)
Ensures the truth of an expression involving the state of the calling instance.
|
public static <T> T checkNotNull(T obj, java.lang.String name)
public static void checkArg(boolean expression, java.lang.String errMsg)
public static void checkState(boolean expression, java.lang.String errMsg)