Class DefaultExtensionValueToBigDecimalConverter
- java.lang.Object
-
- io.tarantool.driver.mappers.converters.value.DefaultExtensionValueToBigDecimalConverter
-
- All Implemented Interfaces:
Converter
,ValueConverter<org.msgpack.value.ExtensionValue,BigDecimal>
,Serializable
public class DefaultExtensionValueToBigDecimalConverter extends Object implements ValueConverter<org.msgpack.value.ExtensionValue,BigDecimal>
DefaultExtensionValue
toBigDecimal
converter- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultExtensionValueToBigDecimalConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canConvertValue(org.msgpack.value.ExtensionValue value)
Optional method for determining if this specific entity can be converted to the specified object type.BigDecimal
fromValue(org.msgpack.value.ExtensionValue value)
Convert MessagePack entity to a Java object
-
-
-
Method Detail
-
fromValue
public BigDecimal fromValue(org.msgpack.value.ExtensionValue value)
Description copied from interface:ValueConverter
Convert MessagePack entity to a Java object- Specified by:
fromValue
in interfaceValueConverter<org.msgpack.value.ExtensionValue,BigDecimal>
- Parameters:
value
- entity- Returns:
- object
-
canConvertValue
public boolean canConvertValue(org.msgpack.value.ExtensionValue value)
Description copied from interface:ValueConverter
Optional method for determining if this specific entity can be converted to the specified object type.- Specified by:
canConvertValue
in interfaceValueConverter<org.msgpack.value.ExtensionValue,BigDecimal>
- Parameters:
value
- MessagePack entity to be converted- Returns:
- true, if the entity csn be converted
-
-