Class Validate


  • public final class Validate
    extends Object
    Some used validations from commons.
    • Method Detail

      • notNull

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

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

        public static void isTrue​(boolean expression,
                                  String message,
                                  Object... values)
      • noNullElements

        public static <T> T[] noNullElements​(T[] array,
                                             String message,
                                             Object... values)
      • validState

        public static void validState​(boolean expression,
                                      String message,
                                      Object... values)