public class FloatTransformer extends AbstractDecimalTransformer<Float>
A specialized number transformer implementation that deals with numbers of
type java.lang.Float.
This class implements the abstract methods defined by its super classes in a
way suitable for java.lang.Float 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 |
|---|
FloatTransformer() |
| Modifier and Type | Method and Description |
|---|---|
protected Float |
convert(Number n)
Converts the specified number into a
Float. |
protected Float |
fetchProperty(org.apache.commons.configuration.Configuration config,
String property,
Float defaultValue)
Fetches a float property from the specified configuration.
|
createFormaterrorResult, getMaximum, getMinimum, isNumberValid, isValid, setMaximum, setMinimum, transform, transformToNumberprotected Float convert(Number n)
Float. If the number
exceeds the value range of a float, an exception is thrown.convert in class NumberTransformerBase<Float>n - the number to convertIllegalArgumentException - if the number cannot be convertedprotected Float fetchProperty(org.apache.commons.configuration.Configuration config, String property, Float defaultValue)
fetchProperty in class NumberTransformerBase<Float>config - the configurationproperty - the propertydefaultValue - the default valueCopyright © 2016 The JGUIraffe Team. All rights reserved.