public class MaxQuantityValidationRule extends ValidationRule
error| Modifier and Type | Method and Description |
|---|---|
boolean |
validate(Answer answer)
Validates whether the given string is of type int and is less than or equal to max amount.
|
getErrorpublic boolean validate(Answer answer)
validate in class ValidationRuleanswer - to validate.