public class MaximumOption extends ValidationOption
Constructor and Description |
---|
MaximumOption() |
Modifier and Type | Method and Description |
---|---|
boolean |
canContain(Object o)
Verify that this option can contain the given Object as configuration
For example MinimumOption can only contain numbers, not Strings
|
String |
validate(Object arg,
Object value)
Validate an Object against the criteria given by this option
|
public boolean canContain(Object o)
ValidationOption
canContain
in class ValidationOption
o
- the Object to testpublic String validate(Object arg, Object value)
ValidationOption
validate
in class ValidationOption
arg
- the configuration value this option hasvalue
- the object to test