| Constructor and Description |
|---|
DoubleRule()
Default constructor.
|
DoubleRule(double min)
Creates a IntegerRule with a min value.
|
DoubleRule(double min,
double max)
Creates a IntegerRule with a min and max values.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(String value)
Do the check.
|
static DoubleRule |
getInstance() |
static DoubleRule |
getInstance(double min)
Gets the instance.
|
static DoubleRule |
getInstance(int min,
int max)
Gets the instance.
|
Map<String,String> |
getTokens()
Returns a map with tokens that can be used in the error messages.
|
public DoubleRule()
public DoubleRule(double min)
min - The minimum value for the integer.public DoubleRule(double min,
double max)
min - The minium value for the integer.max - The maximum value for the integer.public static DoubleRule getInstance()
public static DoubleRule getInstance(double min)
min - doublepublic static DoubleRule getInstance(int min, int max)
min - doublemax - doublepublic Map<String,String> getTokens()
RuleCopyright © 2015. All Rights Reserved.