Package studio.mevera.imperat.util
Class Preconditions
java.lang.Object
studio.mevera.imperat.util.Preconditions
-
Method Summary
Modifier and TypeMethodDescriptionstatic intbetweenIn(int value, int min, int max) static voidcheckArgument(boolean expr, String err) static voidcheckCallableStatic(@Nullable Object instance, @NotNull Method method) static intgetHighest(int value, int min) static intgetLeast(int value, int max) static voidstatic <T> voidnotEmpty(Collection<T> collection, String err) static <T> voidstatic <T> void
-
Method Details
-
notEmpty
-
notEmpty
-
notEmpty
-
checkArgument
-
betweenIn
public static int betweenIn(int value, int min, int max) -
getLeast
public static int getLeast(int value, int max) -
getHighest
public static int getHighest(int value, int min) -
notNull
-
checkCallableStatic
-