java.lang.Object
org.pdfsam.eventstudio.util.RequireUtils
Utility class with some helper method to check validity of input arguments
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrequireNotBlank(String victim) Requires that the input string is not blankstatic voidrequireNotNull(Object victim) Requires that the input argument is not null
-
Constructor Details
-
RequireUtils
private RequireUtils()
-
-
Method Details
-
requireNotBlank
Requires that the input string is not blank- Parameters:
victim- the string to be tested- Throws:
IllegalArgumentException- if the input is blank
-
requireNotNull
Requires that the input argument is not null- Parameters:
victim- the string to be tested- Throws:
IllegalArgumentException- if the input is null
-