public final class Preconditions extends Object
Modifier and Type | Method and Description |
---|---|
static void |
checkArgument(boolean expression,
String message) |
static String |
checkNotEmpty(String string) |
static <T extends Collection<Y>,Y> |
checkNotEmpty(T collection) |
static <T> T |
checkNotNull(T arg) |
static <T> T |
checkNotNull(T arg,
String message) |
public static void checkArgument(boolean expression, String message)
public static <T> T checkNotNull(T arg)
public static <T> T checkNotNull(T arg, String message)
public static <T extends Collection<Y>,Y> T checkNotEmpty(T collection)