public class LimitedStringValidator extends FilledStringValidator
Constructor and Description |
---|
LimitedStringValidator(int minLength,
int maxLength) |
Modifier and Type | Method and Description |
---|---|
ValidationResult |
validate(Object value)
Validates: applies the validation from
FilledStringValidator and also check that value's length
is between the minimum and maximum length passed to the constructor. |
public LimitedStringValidator(int minLength, int maxLength)
public ValidationResult validate(Object value)
FilledStringValidator
and also check that value's length
is between the minimum and maximum length passed to the constructor.validate
in interface Validator
validate
in class FilledStringValidator
value
- The object to checkCopyright © 2012–2019 Graylog, Inc.. All rights reserved.