final class CharacterToNumberFactory extends java.lang.Object implements ConverterFactory<java.lang.Character,java.lang.Number>
Support Number classes including Byte, Short, Integer, Float, Double, Long, BigInteger, BigDecimal. This class
delegates to NumberUtils.convertNumberToTargetClass(Number, Class)
to perform the conversion.
Byte
,
Short
,
Integer
,
Long
,
BigInteger
,
Float
,
Double
,
BigDecimal
,
NumberUtils
Modifier and Type | Class and Description |
---|---|
private static class |
CharacterToNumberFactory.CharacterToNumber<T extends java.lang.Number> |
Constructor and Description |
---|
CharacterToNumberFactory() |
Modifier and Type | Method and Description |
---|---|
<T extends java.lang.Number> |
getConverter(java.lang.Class<T> targetType)
Get the converter to convert from S to target type T, where T is also an instance of R.
|
public <T extends java.lang.Number> Converter<java.lang.Character,T> getConverter(java.lang.Class<T> targetType)
ConverterFactory
getConverter
in interface ConverterFactory<java.lang.Character,java.lang.Number>
T
- the target typetargetType
- the target type to convert to