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