| Constructor and Description |
|---|
PositiveDurationValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
validate(String name,
Duration value)
Validates if the value value the of provided configuration parameter name is a positive
Duration |
public void validate(String name, Duration value) throws ValidationException
Durationvalidate in interface Validator<Duration>name - The name of the configuration parametervalue - The value of the configuration validatorValidationException - If the value value configuration parameter name can't be parsed
as an Duration or is negative.Copyright © 2022. All rights reserved.