Package nl.altindag.ssl.util.internal
Class ValidationUtils
- java.lang.Object
-
- nl.altindag.ssl.util.internal.ValidationUtils
-
public final class ValidationUtils extends Object
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 Modifier and Type Field Description static UnaryOperator<String>
GENERIC_EXCEPTION_MESSAGE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
requireNotBlank(String maybeNull, String message)
static String
requireNotBlank(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> T
requireNotNull(T maybeNull, String message)
static <T> T
requireNotNull(T maybeNull, Supplier<RuntimeException> exceptionSupplier)
-
-
-
Field Detail
-
GENERIC_EXCEPTION_MESSAGE
public static final UnaryOperator<String> GENERIC_EXCEPTION_MESSAGE
-
-
Method Detail
-
requireNotNull
public static <T> T requireNotNull(T maybeNull, String message)
-
requireNotNull
public static <T> T requireNotNull(T maybeNull, Supplier<RuntimeException> exceptionSupplier)
-
requireNotEmpty
public static <T> List<T> requireNotEmpty(List<T> maybeNull, Supplier<RuntimeException> exceptionSupplier)
-
requireNotEmpty
public static <T> T[] requireNotEmpty(T[] maybeNull, String message)
-
requireNotEmpty
public static <T> T[] requireNotEmpty(T[] maybeNull, Supplier<RuntimeException> exceptionSupplier)
-
requireNotBlank
public static String requireNotBlank(String maybeNull, Supplier<RuntimeException> exceptionSupplier)
-
-