Class PositiveLongValidator
java.lang.Object
com.github.joschi.jadconfig.validators.PositiveLongValidator
Validator class which checks if the named parameter is a positive long.- Author:
- jschalanda
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PositiveLongValidator
public PositiveLongValidator()
-
-
Method Details
-
validate
Validates if the value value the of provided configuration parameter name is a positive long- Specified by:
validatein interfaceValidator<Long>- 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 long or is negative.
-