public final class Preconditions extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
checkNotNull(T obj,
String name)
Ensures the object reference is not null.
|
static void |
checkState(boolean expression,
String errMsg)
Ensures the truth of an expression involving the state of the calling instance.
|