public class BigNumberLeafValueHandler extends AbstractLeafValueHandler
NumberLeafValueHandler.| Constructor and Description |
|---|
BigNumberLeafValueHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected @Nullable Object |
convert(@Nullable Class<?> clazz,
@Nullable Object value) |
protected @NotNull Object |
fromNumber(@NotNull Class<?> targetClass,
@NotNull Number value)
Creates a BigInteger or BigDecimal value from the given number value, if possible.
|
protected @Nullable Object |
fromString(@NotNull Class<?> targetClass,
@NotNull String value)
Creates a BigInteger or BigDecimal value from the given string value, if possible.
|
@Nullable Object |
toExportValue(@Nullable Object value)
Converts the given value to a type more suitable for exporting.
|
convert@Nullable protected @Nullable Object convert(@Nullable @Nullable Class<?> clazz, @Nullable @Nullable Object value)
convert in class AbstractLeafValueHandler@Nullable public @Nullable Object toExportValue(@Nullable @Nullable 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 @Nullable Object fromString(@NotNull @NotNull Class<?> targetClass, @NotNull @NotNull String value)
targetClass - the target class to convert to (can only be BigInteger or BigDecimal)value - the value to convert@NotNull protected @NotNull Object fromNumber(@NotNull @NotNull Class<?> targetClass, @NotNull @NotNull Number value)
targetClass - the target class to convert to (can only be BigInteger or BigDecimal)value - the value to convertCopyright © 2016–2023 The AuthMe Team. All rights reserved.