Package nl.altindag.ssl.util.internal
Class ValidationUtils
java.lang.Object
nl.altindag.ssl.util.internal.ValidationUtils
NOTE:
Please don't use this class directly as it is part of the internal API. Class name and methods can be changed any time.
- Author:
- Hakan Altindag
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringrequireNotBlank(String maybeNull, String message) static StringrequireNotBlank(String maybeNull, Supplier<RuntimeException> exceptionSupplier) static <T> List<T>requireNotEmpty(List<T> maybeNull, String message) static <T> List<T>requireNotEmpty(List<T> maybeNull, Supplier<RuntimeException> exceptionSupplier) static <T> T[]requireNotEmpty(T[] maybeNull, String message) static <T> T[]requireNotEmpty(T[] maybeNull, Supplier<RuntimeException> exceptionSupplier) static <T> TrequireNotNull(T maybeNull, String message) static <T> TrequireNotNull(T maybeNull, Supplier<RuntimeException> exceptionSupplier)
-
Field Details
-
GENERIC_EXCEPTION_MESSAGE
-
-
Method Details
-
requireNotNull
-
requireNotNull
-
requireNotEmpty
-
requireNotEmpty
public static <T> List<T> requireNotEmpty(List<T> maybeNull, Supplier<RuntimeException> exceptionSupplier) -
requireNotEmpty
-
requireNotEmpty
-
requireNotBlank
-
requireNotBlank
public static String requireNotBlank(String maybeNull, Supplier<RuntimeException> exceptionSupplier)
-