Package com.microsoft.rest
Class Validator
- java.lang.Object
-
- com.microsoft.rest.Validator
-
public final class Validator extends Object
Validates user provided parameters are not null if they are required.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidvalidate(Object parameter)Validates a user provided required parameter to be not null.
-
-
-
Method Detail
-
validate
public static void validate(Object parameter)
Validates a user provided required parameter to be not null. AnIllegalArgumentExceptionis thrown if a property fails the validation.- Parameters:
parameter- the parameter to validate- Throws:
IllegalArgumentException- thrown when the Validator determines the argument is invalid
-
-