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) |
@NonNull public static <T extends Collection<Y>,Y> T checkNotEmpty(@NonNull T collection)