public final class ValidationUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static UnaryOperator<String> |
GENERIC_EXCEPTION_MESSAGE |
| Modifier and Type | Method and 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 |
requireNotNull(T maybeNull,
String message) |
static <T> T |
requireNotNull(T maybeNull,
Supplier<RuntimeException> exceptionSupplier) |
public static final UnaryOperator<String> GENERIC_EXCEPTION_MESSAGE
public static <T> T requireNotNull(T maybeNull,
String message)
public static <T> T requireNotNull(T maybeNull,
Supplier<RuntimeException> exceptionSupplier)
public static <T> List<T> requireNotEmpty(List<T> maybeNull, Supplier<RuntimeException> exceptionSupplier)
public static String requireNotBlank(String maybeNull, Supplier<RuntimeException> exceptionSupplier)
Copyright © 2022. All rights reserved.