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.
|
getError
public boolean validate(Answer answer)
validate
in class ValidationRule
answer
- to validate.