Class StdScalarDeserializer<T>

    • Constructor Detail

      • StdScalarDeserializer

        protected StdScalarDeserializer​(java.lang.Class<?> vc)
      • StdScalarDeserializer

        protected StdScalarDeserializer​(JavaType valueType)
    • Method Detail

      • logicalType

        public LogicalType logicalType()
        Description copied from class: JsonDeserializer
        Method for accessing logical type of values this deserializer produces. Typically used for further configuring handling of values, for example, to find which coercions are legal.
        Overrides:
        logicalType in class JsonDeserializer<T>
        Returns:
        Logical type of values this deserializer produces, if known; null if not
      • supportsUpdate

        public java.lang.Boolean supportsUpdate​(DeserializationConfig config)
        By default assumption is that scalar types cannot be updated: many are immutable values (such as primitives and wrappers)
        Overrides:
        supportsUpdate in class JsonDeserializer<T>
      • deserializeWithType

        public java.lang.Object deserializeWithType​(com.fasterxml.jackson.core.JsonParser p,
                                                    DeserializationContext ctxt,
                                                    TypeDeserializer typeDeserializer)
                                             throws java.io.IOException
        Description copied from class: StdDeserializer
        Base implementation that does not assume specific type inclusion mechanism. Sub-classes are expected to override this method if they are to handle type information.
        Overrides:
        deserializeWithType in class StdDeserializer<T>
        typeDeserializer - Deserializer to use for handling type information
        Throws:
        java.io.IOException
      • deserialize

        public T deserialize​(com.fasterxml.jackson.core.JsonParser p,
                             DeserializationContext ctxt,
                             T intoValue)
                      throws java.io.IOException
        Overridden to simply call deserialize() method that does not take value to update, since scalar values are usually non-mergeable.
        Overrides:
        deserialize in class JsonDeserializer<T>
        Throws:
        java.io.IOException