public class BigNumberLeafValueHandler extends AbstractLeafValueHandler
NumberLeafValueHandler.| Constructor and Description |
|---|
BigNumberLeafValueHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
convert(Class<?> clazz,
Object value) |
protected Object |
fromNumber(Class<?> targetClass,
Number value)
Creates a BigInteger or BigDecimal value from the given number value, if possible.
|
protected Object |
fromString(Class<?> targetClass,
String value)
Creates a BigInteger or BigDecimal value from the given string value, if possible.
|
Object |
toExportValue(Object value)
Converts the given value to a type more suitable for exporting.
|
convertprotected Object convert(Class<?> clazz, Object value)
convert in class AbstractLeafValueHandlerpublic Object toExportValue(Object value)
LeafValueHandlerProperty.toExportValue(T) is called on a bean property.
Returns null if the leaf value handler cannot handle the value.
Return MapperImpl.RETURN_NULL to signal that null should be used
as the export value (returning null itself means this leaf value handler cannot handle it).
value - the value to convert to an export value, if possible@Nullable protected Object fromString(Class<?> targetClass, String value)
targetClass - the target class to convert to (can only be BigInteger or BigDecimal)value - the value to convertprotected Object fromNumber(Class<?> targetClass, Number value)
targetClass - the target class to convert to (can only be BigInteger or BigDecimal)value - the value to convertCopyright © 2016–2021 The AuthMe Team. All rights reserved.