public class NumberConverter extends Object implements GenericConverter
GenericConverter implementation that converts between Number types. The conversion logic is:
null, convert to Double.NaNDouble.NaN, convert to nullNumber subclasses),
convert the value to the target typeGenericConverter.ConvertiblePair| Constructor and Description |
|---|
NumberConverter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Object source,
TypeDescriptor sourceType,
TypeDescriptor targetType) |
Set<GenericConverter.ConvertiblePair> |
getConvertibleTypes() |
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType)
convert in interface GenericConverterpublic Set<GenericConverter.ConvertiblePair> getConvertibleTypes()
getConvertibleTypes in interface GenericConverterCopyright © 2014. All rights reserved.