public final class DoubleTransformer extends AbstractDecimalTransformer<Double>
A specialized number transformer implementation that deals with numbers of
type java.lang.Double.
This class implements the abstract methods defined by its super classes in a
way suitable for java.lang.Double objects. It does not define
any new properties or error messages. Refer to the documentation of
for a list of all supported
properties and possible error messages.
NumberTransformerBase
PROP_MAXIMUM, PROP_MINIMUM| Constructor and Description |
|---|
DoubleTransformer() |
| Modifier and Type | Method and Description |
|---|---|
protected Double |
convert(Number n)
Converts the specified number into a
java.lang.Double. |
protected Double |
fetchProperty(org.apache.commons.configuration.Configuration config,
String property,
Double defaultValue)
Returns a configuration property of type
Double. |
createFormaterrorResult, getMaximum, getMinimum, isNumberValid, isValid, setMaximum, setMinimum, transform, transformToNumberprotected Double convert(Number n)
java.lang.Double. A
range check will be performed.convert in class NumberTransformerBase<Double>n - the number to be convertedIllegalArgumentException - if the number cannot be converted into a
Doubleprotected Double fetchProperty(org.apache.commons.configuration.Configuration config, String property, Double defaultValue)
Double.fetchProperty in class NumberTransformerBase<Double>config - the configurationproperty - the propertydefaultValue - the default valueCopyright © 2016 The JGUIraffe Team. All rights reserved.