public class FloatConverter extends AbstractDecimalConverter<Float>
| Modifier and Type | Field and Description |
|---|---|
static IConverter<Float> |
INSTANCE
The singleton instance for a float converter
|
| Constructor and Description |
|---|
FloatConverter() |
| Modifier and Type | Method and Description |
|---|---|
Float |
convertToObject(String value,
Locale locale)
Converts the given
String value |
protected Class<Float> |
getTargetType() |
newNumberFormatconvertToString, getNumberFormat, parsenewConversionException, parsepublic static final IConverter<Float> INSTANCE
public Float convertToObject(String value, Locale locale)
IConverterString valuevalue - The string value to convertlocale - The locale used to convert the valueIConverter.convertToObject(java.lang.String,Locale)protected Class<Float> getTargetType()
getTargetType in class AbstractConverter<Float>AbstractConverter.getTargetType()Copyright © 2006–2021 Apache Software Foundation. All rights reserved.