com.fasterxml.jackson.databind.deser.std

Class NumberDeserializers.PrimitiveOrWrapperDeserializer<T>

    • Field Detail

      • _nullValue

        protected final T _nullValue
    • Constructor Detail

      • NumberDeserializers.PrimitiveOrWrapperDeserializer

        protected NumberDeserializers.PrimitiveOrWrapperDeserializer(Class<T> vc,
                                                          T nvl)
    • Method Detail

      • getNullValue

        public final T getNullValue()
        Description copied from class: JsonDeserializer
        Method that can be called to determine value to be used for representing null values (values deserialized when JSON token is JsonToken.VALUE_NULL). Usually this is simply Java null, but for some types (especially primitives) it may be necessary to use non-null values.

        Note that deserializers are allowed to call this just once and then reuse returned value; that is, method is not guaranteed to be called once for each conversion.

        Default implementation simply returns null.

        Overrides:
        getNullValue in class JsonDeserializer<T>

Copyright © 2014-2015 FasterXML. All Rights Reserved.