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 @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 @Nullable String s, String name)
    • notNullOrEmpty

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

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

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

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

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