Class Validate


  • public class Validate
    extends java.lang.Object
    Set of utils for methods preconditions.
    • Constructor Summary

      Constructors 
      Constructor Description
      Validate()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void argumentCheck​(boolean argumentCondition, java.lang.String message)  
      static void argumentIsNotNull​(java.lang.Object argument)  
      static void argumentIsNotNull​(java.lang.Object argument, java.lang.String message)
      Checks if given argument is not null.
      static void argumentsAreNotNull​(java.lang.Object... arguments)  
      static void conditionFulfilled​(boolean condition, java.lang.String message)  
      • Methods inherited from class java.lang.Object

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

      • Validate

        public Validate()
    • Method Detail

      • argumentIsNotNull

        public static void argumentIsNotNull​(java.lang.Object argument,
                                             java.lang.String message)
        Checks if given argument is not null.
        Throws:
        java.lang.IllegalArgumentException
      • argumentIsNotNull

        public static void argumentIsNotNull​(java.lang.Object argument)
        Throws:
        java.lang.IllegalArgumentException
      • argumentsAreNotNull

        public static void argumentsAreNotNull​(java.lang.Object... arguments)
        Throws:
        java.lang.IllegalArgumentException
      • argumentCheck

        public static void argumentCheck​(boolean argumentCondition,
                                         java.lang.String message)
        Throws:
        java.lang.IllegalArgumentException
      • conditionFulfilled

        public static void conditionFulfilled​(boolean condition,
                                              java.lang.String message)
        Throws:
        java.lang.IllegalStateException