public final class Preconditions
extends Object
-
Method Summary
static void
static void
static void
static void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
checkState
@Contract("false, _ -> fail")
public static void checkState(boolean value,
String message)
-
notNull
@Contract("null, _ -> fail")
public static void notNull(Object value,
String name)
-
isNull
@Contract("_, _ -> fail")
public static void isNull(Object value,
String name)
-