Class PositiveIntegerValidator
java.lang.Object
com.github.joschi.jadconfig.validators.PositiveIntegerValidator
Validator class which checks if the named parameter is a positive integer.- Author:
- jschalanda
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PositiveIntegerValidator
public PositiveIntegerValidator()
-
-
Method Details
-
validate
Validates if the value value the of provided configuration parameter name is a positive integer- Specified by:
validatein interfaceValidator<Integer>- Parameters:
name- The name of the configuration parametervalue- The value of the configuration validator- Throws:
ValidationException- If the value value configuration parameter name can't be parsed as an int or is negative.
-