Class Preconditions

java.lang.Object
revxrsal.commands.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 <T> void notEmpty(String s, String err)
    • checkArgument

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

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