Package ch.njol.util

Class Validate

java.lang.Object
ch.njol.util.Validate

public abstract class Validate extends Object
  • Constructor Details

    • Validate

      public Validate()
  • Method Details

    • notNull

      public static void notNull(Object... objects)
    • notNull

      public static void notNull(@Nullable Object object, String name)
    • isTrue

      public static void isTrue(boolean b, String error)
    • isFalse

      public static void isFalse(boolean b, String error)
    • notNullOrEmpty

      public static void notNullOrEmpty(@Nullable String s, String name)
    • notNullOrEmpty

      public static void notNullOrEmpty(@Nullable Object[] array, String name)
    • notNullOrEmpty

      public static void notNullOrEmpty(@Nullable Collection<?> collection, String name)
    • notEmpty

      public static void notEmpty(@Nullable String s, String name)
    • notEmpty

      public static void notEmpty(Object[] array, String name)
    • notEmpty

      public static void notEmpty(int[] nums, String name)