T
- The type of a instant class that can be deserialized.public class IonTimestampInstantDeserializer<T extends Temporal>
extends com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer<T>
implements com.fasterxml.jackson.databind.deser.ContextualDeserializer
Modifier and Type | Field and Description |
---|---|
protected Boolean |
adjustToContextTZOverride
Flag for
JsonFormat.Feature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE |
protected BiFunction<Instant,ZoneId,T> |
fromInstant |
static IonTimestampInstantDeserializer<Instant> |
INSTANT |
static IonTimestampInstantDeserializer<OffsetDateTime> |
OFFSET_DATE_TIME |
static IonTimestampInstantDeserializer<ZonedDateTime> |
ZONED_DATE_TIME |
Modifier | Constructor and Description |
---|---|
protected |
IonTimestampInstantDeserializer(Class<T> vc,
BiFunction<Instant,ZoneId,T> fromInstant) |
protected |
IonTimestampInstantDeserializer(IonTimestampInstantDeserializer<T> base,
Boolean adjustToContextTZOverride) |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonDeserializer<T> |
createContextual(com.fasterxml.jackson.databind.DeserializationContext ctxt,
com.fasterxml.jackson.databind.BeanProperty property) |
T |
deserialize(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext context) |
deserialize, deserializeWithType, getEmptyAccessPattern, getNullAccessPattern, logicalType, supportsUpdate
_byteOverflow, _checkCoercionFail, _checkDoubleSpecialValue, _checkFloatSpecialValue, _checkFloatToIntCoercion, _checkFromStringCoercion, _checkFromStringCoercion, _checkTextualNull, _coerceBooleanFromInt, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeFromEmptyString, _deserializeFromString, _deserializeWrappedValue, _failDoubleToIntCoercion, _findCoercionFromBlankString, _findCoercionFromEmptyArray, _findCoercionFromEmptyString, _findNullProvider, _hasTextualNull, _intOverflow, _isBlank, _isEmptyOrTextualNull, _isFalse, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _isTrue, _neitherNull, _nonNullNumber, _parseBoolean, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDouble, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueInstantiator, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer
public static final IonTimestampInstantDeserializer<Instant> INSTANT
public static final IonTimestampInstantDeserializer<OffsetDateTime> OFFSET_DATE_TIME
public static final IonTimestampInstantDeserializer<ZonedDateTime> ZONED_DATE_TIME
protected final BiFunction<Instant,ZoneId,T extends Temporal> fromInstant
protected final Boolean adjustToContextTZOverride
JsonFormat.Feature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE
protected IonTimestampInstantDeserializer(Class<T> vc, BiFunction<Instant,ZoneId,T> fromInstant)
protected IonTimestampInstantDeserializer(IonTimestampInstantDeserializer<T> base, Boolean adjustToContextTZOverride)
public T deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
deserialize
in class com.fasterxml.jackson.databind.JsonDeserializer<T extends Temporal>
IOException
com.fasterxml.jackson.core.JsonProcessingException
public com.fasterxml.jackson.databind.JsonDeserializer<T> createContextual(com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.BeanProperty property) throws com.fasterxml.jackson.databind.JsonMappingException
createContextual
in interface com.fasterxml.jackson.databind.deser.ContextualDeserializer
com.fasterxml.jackson.databind.JsonMappingException
Copyright © 2020 FasterXML. All rights reserved.