Class Validate


  • public final class Validate
    extends Object
    Since:
    1.0
    Author:
    Daniel Fernández
    • Method Detail

      • notNull

        public static void notNull​(Object object,
                                   String message)
      • notEmpty

        public static void notEmpty​(String object,
                                    String message)
      • notEmpty

        public static void notEmpty​(Collection<?> object,
                                    String message)
      • notEmpty

        public static void notEmpty​(Object[] object,
                                    String message)
      • containsNoNulls

        public static void containsNoNulls​(Iterable<?> collection,
                                           String message)
      • containsNoEmpties

        public static void containsNoEmpties​(Iterable<String> collection,
                                             String message)
      • containsNoNulls

        public static void containsNoNulls​(Object[] array,
                                           String message)
      • isTrue

        public static void isTrue​(boolean condition,
                                  String message)