Class Parameter


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

      Constructors 
      Constructor Description
      Parameter()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <E> void checkIsMandotary​(java.lang.String paramName, java.lang.Object object)
      Helper method to check the parameters.
      • Methods inherited from class java.lang.Object

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

      • Parameter

        public Parameter()
    • Method Detail

      • checkIsMandotary

        public static <E> void checkIsMandotary​(java.lang.String paramName,
                                                java.lang.Object object)
        Helper method to check the parameters. This method should be used for all public methods.
        Type Parameters:
        E - type
        Parameters:
        paramName - String A name for the parameter to check
        object - Object The object to check
        Throws:
        java.lang.IllegalArgumentException - will be thrown if the parameter value is null (for String also if the value is empty or blank)