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)
ValidationOptioncanContain in class ValidationOptiono - the Object to testpublic String validate(Object arg, Object value)
ValidationOptionvalidate in class ValidationOptionarg - the configuration value this option hasvalue - the object to test