| Constructor and Description |
|---|
OptionsRule(int min)
Creates a IntegerRule with a min value.
|
OptionsRule(int min,
int max)
Creates a IntegerRule with a min and max values.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(String field,
Action action)
Check and validate the given field from the give action.
|
static OptionsRule |
getInstance(int min) |
static OptionsRule |
getInstance(int min,
int max) |
Map<String,String> |
getTokens()
Returns a map with tokens that can be used in the error messages.
|
public OptionsRule(int min)
min - The minimum value for the integer.public OptionsRule(int min,
int max)
min - The minium value for the integer.max - The maximum value for the integer.public static OptionsRule getInstance(int min)
public static OptionsRule getInstance(int min, int max)
public Map<String,String> getTokens()
RuleCopyright © 2015. All Rights Reserved.