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