Class Preconditions

java.lang.Object
studio.mevera.imperat.util.Preconditions

public final class Preconditions extends Object
  • Method Details

    • notEmpty

      public static <T> void notEmpty(T[] array, String err)
    • notEmpty

      public static <T> void notEmpty(Collection<T> collection, String err)
    • notEmpty

      public static void notEmpty(String s, String err)
    • checkArgument

      public static void checkArgument(boolean expr, String err)
    • 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

      public static <T> void notNull(T t, String err)
    • checkCallableStatic

      public static void checkCallableStatic(@Nullable @Nullable Object instance, @NotNull @NotNull Method method)