protected abstract static class NumberDeserializers.PrimitiveOrWrapperDeserializer<T> extends StdScalarDeserializer<T>
JsonDeserializer.None
Modifier and Type | Field and Description |
---|---|
protected T |
_nullValue |
_valueClass
Modifier | Constructor and Description |
---|---|
protected |
NumberDeserializers.PrimitiveOrWrapperDeserializer(Class<T> vc,
T nvl) |
Modifier and Type | Method and Description |
---|---|
T |
getNullValue()
Method that can be called to determine value to be used for
representing null values (values deserialized when JSON token
is
JsonToken.VALUE_NULL ). |
deserializeWithType
_parseBoolean, _parseBooleanFromNumber, _parseBooleanPrimitive, _parseByte, _parseDate, _parseDouble, _parseDoublePrimitive, _parseFloat, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseShort, _parseShortPrimitive, _parseString, findConvertingContentDeserializer, findDeserializer, getValueClass, getValueType, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
deserialize, deserialize, getDelegatee, getEmptyValue, getKnownPropertyNames, getObjectIdReader, isCachable, replaceDelegatee, unwrappingDeserializer
protected final T _nullValue
public final T getNullValue()
JsonDeserializer
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.
getNullValue
in class JsonDeserializer<T>
Copyright © 2012-2013 FasterXML. All Rights Reserved.