-
public final class PreconditionsContains common assertions.
-
-
Method Summary
Modifier and Type Method Description static voidcheckArgument(boolean expression, @NonNull() String message)static <T> TcheckNotNull(@Nullable() T arg)static <T> TcheckNotNull(@Nullable() T arg, @NonNull() String message)static StringcheckNotEmpty(@Nullable() String string)static <T extends Collection<Y>, Y> TcheckNotEmpty(@NonNull() T collection)-
-
Method Detail
-
checkArgument
static void checkArgument(boolean expression, @NonNull() String message)
-
checkNotNull
@NonNull() static <T> T checkNotNull(@Nullable() T arg)
-
checkNotEmpty
@NonNull() static String checkNotEmpty(@Nullable() String string)
-
checkNotEmpty
@NonNull() static <T extends Collection<Y>, Y> T checkNotEmpty(@NonNull() T collection)
-
-
-
-