Package revxrsal.commands.util
Class Preconditions
java.lang.Object
revxrsal.commands.util.Preconditions
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkArgument
(boolean expr, String err) static int
coerceAtLeast
(int value, int min) static int
coerceAtMost
(int value, int max) static int
coerceIn
(int value, int min, int max) static <T> void
static <T> void
notEmpty
(Collection<T> collection, String err) static <T> void
static <T> T
-
Method Details
-
notEmpty
-
notEmpty
-
notEmpty
-
checkArgument
-
coerceIn
public static int coerceIn(int value, int min, int max) -
coerceAtMost
public static int coerceAtMost(int value, int max) -
coerceAtLeast
public static int coerceAtLeast(int value, int min) -
notNull
-