Class Validation


  • public class Validation
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Validation()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void validate​(boolean condition, java.lang.String errorMessage)  
      static void validate​(boolean condition, java.util.function.Supplier<java.lang.String> errorMessageSupplier)  
      static void validate​(java.util.function.Supplier<java.lang.Boolean> condition, java.util.function.Supplier<java.lang.String> errorMessageSupplier)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Validation

        public Validation()
    • Method Detail

      • validate

        public static void validate​(java.util.function.Supplier<java.lang.Boolean> condition,
                                    java.util.function.Supplier<java.lang.String> errorMessageSupplier)
      • validate

        public static void validate​(boolean condition,
                                    java.lang.String errorMessage)
      • validate

        public static void validate​(boolean condition,
                                    java.util.function.Supplier<java.lang.String> errorMessageSupplier)