Package io.tarantool.driver.api.tuple
Class TarantoolNullField
- java.lang.Object
-
- io.tarantool.driver.api.tuple.TarantoolNullField
-
- All Implemented Interfaces:
TarantoolField,Packable,Serializable
public final class TarantoolNullField extends Object implements TarantoolField
Represents a field with empty value which serializes tomsgpack.NULL- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TarantoolNullField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanConvertValue(Class<?> targetClass, MessagePackValueMapper mapper)Check whether the underlying field value can be converted to an object using the given MessagePack-to-object mapperbooleanequals(Object o)ObjectgetValue(MessagePackValueMapper mapper)Get the field value, possibly converted to some Java type<O> OgetValue(Class<O> targetClass, MessagePackValueMapper mapper)Get the field value converted to the target typeinthashCode()org.msgpack.value.ValuetoMessagePackValue(MessagePackObjectMapper mapper)Convert this instance into a corresponding MessagePackValue
-
-
-
Method Detail
-
toMessagePackValue
public org.msgpack.value.Value toMessagePackValue(MessagePackObjectMapper mapper)
Description copied from interface:PackableConvert this instance into a corresponding MessagePackValue- Specified by:
toMessagePackValuein interfacePackable- Parameters:
mapper- configured Java objects to entities mapper- Returns:
- MessagePack entity
-
getValue
public <O> O getValue(Class<O> targetClass, MessagePackValueMapper mapper)
Description copied from interface:TarantoolFieldGet the field value converted to the target type- Specified by:
getValuein interfaceTarantoolField- Type Parameters:
O- the target type- Parameters:
targetClass- the target type classmapper- mapper for converting MessagePack entity to Java object- Returns:
- value
-
getValue
public Object getValue(MessagePackValueMapper mapper)
Description copied from interface:TarantoolFieldGet the field value, possibly converted to some Java type- Specified by:
getValuein interfaceTarantoolField- Parameters:
mapper- mapper for converting MessagePack entity to Java object- Returns:
- value
-
canConvertValue
public boolean canConvertValue(Class<?> targetClass, MessagePackValueMapper mapper)
Description copied from interface:TarantoolFieldCheck whether the underlying field value can be converted to an object using the given MessagePack-to-object mapper- Specified by:
canConvertValuein interfaceTarantoolField- Parameters:
targetClass- the target type classmapper- mapper for converting MessagePack entity to Java object- Returns:
- value
-
-