Class Validate


  • public class Validate
    extends Object
    Some utils methods to validate input
    • Constructor Detail

      • Validate

        public Validate()
    • Method Detail

      • notNull

        public static <T> T notNull​(T object)
      • notNull

        public static <T> T notNull​(T object,
                                    String message)
      • isTrue

        public static void isTrue​(boolean expression)
      • isTrue

        public static void isTrue​(boolean expression,
                                  String message)
      • notEmpty

        public static void notEmpty​(Collection collection)
      • noNullElements

        public static void noNullElements​(Collection<?> collection)
      • noNullElements

        public static void noNullElements​(Collection<?> collection,
                                          String message)
      • noNullElements

        public static <T> T[] noNullElements​(T[] array)
      • noNullElements

        public static <T> T[] noNullElements​(T[] array,
                                             String message)