public class LocaleAwareStringToNumberConverterFactory
extends java.lang.Object
implements org.springframework.core.convert.converter.ConverterFactory<java.lang.String,java.lang.Number>
Support Number classes including Byte, Short, Integer, Float, Double, Long, BigInteger, BigDecimal. This class
delegates to NumberUtils.parseNumber(String, Class, NumberFormat) to perform the conversion.
Byte,
Short,
Integer,
Long,
BigInteger,
Float,
Double,
BigDecimal,
NumberUtils| Constructor and Description |
|---|
LocaleAwareStringToNumberConverterFactory(java.text.NumberFormat numberFormat) |
| Modifier and Type | Method and Description |
|---|---|
<T extends java.lang.Number> |
getConverter(java.lang.Class<T> targetType) |
public LocaleAwareStringToNumberConverterFactory(java.text.NumberFormat numberFormat)
public <T extends java.lang.Number> org.springframework.core.convert.converter.Converter<java.lang.String,T> getConverter(java.lang.Class<T> targetType)
getConverter in interface org.springframework.core.convert.converter.ConverterFactory<java.lang.String,java.lang.Number>