Package org.alfresco.utility.web.common
Class Parameter
- java.lang.Object
-
- org.alfresco.utility.web.common.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> voidcheckIsMandotary(java.lang.String paramName, java.lang.Object object)Helper method to check the parameters.
-
-
-
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-StringA name for the parameter to checkobject-ObjectThe object to check- Throws:
java.lang.IllegalArgumentException- will be thrown if the parameter value is null (forStringalso if the value is empty or blank)
-
-