Class TarantoolFieldImpl

    • Method Detail

      • toMessagePackValue

        public org.msgpack.value.Value toMessagePackValue​(MessagePackObjectMapper mapper)
        Description copied from interface: Packable
        Convert this instance into a corresponding MessagePack Value
        Specified by:
        toMessagePackValue in interface Packable
        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: TarantoolField
        Get the field value converted to the target type
        Specified by:
        getValue in interface TarantoolField
        Type Parameters:
        O - the target type
        Parameters:
        targetClass - the target type class
        mapper - mapper for converting MessagePack entity to Java object
        Returns:
        value
      • getValue

        public Object getValue​(MessagePackValueMapper mapper)
        Description copied from interface: TarantoolField
        Get the field value, possibly converted to some Java type
        Specified by:
        getValue in interface TarantoolField
        Parameters:
        mapper - mapper for converting MessagePack entity to Java object
        Returns:
        value
      • canConvertValue

        public boolean canConvertValue​(Class<?> targetClass,
                                       MessagePackValueMapper mapper)
        Description copied from interface: TarantoolField
        Check whether the underlying field value can be converted to an object using the given MessagePack-to-object mapper
        Specified by:
        canConvertValue in interface TarantoolField
        Parameters:
        targetClass - the target type class
        mapper - mapper for converting MessagePack entity to Java object
        Returns:
        value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object