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 Details

    • GENERIC_EXCEPTION_MESSAGE

      public static final UnaryOperator<String> GENERIC_EXCEPTION_MESSAGE
  • Method Details

    • 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, String message)
    • 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, String message)
    • requireNotBlank

      public static String requireNotBlank(String maybeNull, Supplier<RuntimeException> exceptionSupplier)