Class EditedDeserializer
java.lang.Object
- All Implemented Interfaces:
tools.jackson.databind.deser.NullValueProvider, tools.jackson.databind.deser.ValueInstantiator.Gettable
public class EditedDeserializer
extends tools.jackson.databind.ext.javatime.deser.InstantDeserializer<Instant>
Deserializer for the "edited" field in Reddit API responses. It returns an
Instant if the value is a number
(indicating a timestamp), or null if the value is false (indicating that the post was not edited).-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.ext.javatime.deser.InstantDeserializer
tools.jackson.databind.ext.javatime.deser.InstantDeserializer.FromDecimalArguments, tools.jackson.databind.ext.javatime.deser.InstantDeserializer.FromIntegerArgumentsNested classes/interfaces inherited from class tools.jackson.databind.ValueDeserializer
tools.jackson.databind.ValueDeserializer.None -
Field Summary
FieldsFields inherited from class tools.jackson.databind.ext.javatime.deser.InstantDeserializer
_adjustToContextTZOverride, _readTimestampsAsNanosOverride, adjust, fromMilliseconds, fromNanoseconds, INSTANT, ISO8601_COLONLESS_OFFSET_REGEX, OFFSET_DATE_TIME, parsedToValue, replaceZeroOffsetAsZ, ZONED_DATE_TIMEFields inherited from class tools.jackson.databind.ext.javatime.deser.JSR310DateTimeDeserializerBase
_formatter, _shapeFields inherited from class tools.jackson.databind.deser.std.StdDeserializer
_valueClass, _valueType, F_MASK_INT_COERCIONS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Instant_failForNotLenient(tools.jackson.core.JsonParser arg0, tools.jackson.databind.DeserializationContext arg1, tools.jackson.core.JsonToken arg2) protected Instant_fromEmptyString(tools.jackson.core.JsonParser arg0, tools.jackson.databind.DeserializationContext arg1, String arg2) protected <R> R_handleDateTimeException(tools.jackson.databind.DeserializationContext arg0, DateTimeException arg1, String arg2) protected <R> R_handleDateTimeFormatException(tools.jackson.databind.DeserializationContext arg0, DateTimeException arg1, DateTimeFormatter arg2, String arg3) protected <R> R_handleUnexpectedToken(tools.jackson.databind.DeserializationContext ctxt, tools.jackson.core.JsonParser p, String message, Object... args) protected <R> R_handleUnexpectedToken(tools.jackson.databind.DeserializationContext arg0, tools.jackson.core.JsonParser arg1, tools.jackson.core.JsonToken... arg2) protected booleanprotected DateTimeException_peelDTE(DateTimeException arg0) protected <BOGUS> BOGUS_reportWrongToken(tools.jackson.core.JsonParser arg0, tools.jackson.databind.DeserializationContext arg1, tools.jackson.core.JsonToken... arg2) protected <BOGUS> BOGUS_reportWrongToken(tools.jackson.databind.DeserializationContext arg0, tools.jackson.core.JsonToken arg1, String arg2) deserializeWithType(tools.jackson.core.JsonParser arg0, tools.jackson.databind.DeserializationContext arg1, tools.jackson.databind.jsontype.TypeDeserializer arg2) protected booleantools.jackson.databind.type.LogicalTypeMethods inherited from class tools.jackson.databind.ext.javatime.deser.InstantDeserializer
_countPeriods, _fromDecimal, _fromLong, _fromString, _truncateToMillis, _withFormatOverrides, deserialize, shouldAdjustToContextTimezone, shouldReadTimestampsAsNanoseconds, withDateFormat, withLeniencyMethods inherited from class tools.jackson.databind.ext.javatime.deser.JSR310DateTimeDeserializerBase
_throwNoNumericTimestampNeedTimeZone, createContextual, withShapeMethods inherited from class tools.jackson.databind.deser.std.StdScalarDeserializer
deserialize, getEmptyAccessPattern, getNullAccessPattern, supportsUpdateMethods inherited from class tools.jackson.databind.deser.std.StdDeserializer
_byteOverflow, _checkBooleanToStringCoercion, _checkCoercionFail, _checkDoubleSpecialValue, _checkFloatSpecialValue, _checkFloatToIntCoercion, _checkFloatToStringCoercion, _checkFromStringCoercion, _checkFromStringCoercion, _checkIntToFloatCoercion, _checkIntToStringCoercion, _checkTextualNull, _checkToStringCoercion, _coerceBooleanFromInt, _coercedTypeDesc, _coercedTypeDesc, _coerceIntegral, _deserializeFromArray, _deserializeFromEmptyString, _deserializeFromString, _deserializeFromStringForContainer, _deserializeWrappedValue, _findCoercionFromBlankString, _findCoercionFromEmptyArray, _findCoercionFromEmptyString, _findNullProvider, _hasTextualNull, _intOverflow, _isBlank, _isFalse, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _isTrue, _neitherNull, _nonNullNumber, _parseBoolean, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDouble, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseInteger, _parseInteger, _parseIntPrimitive, _parseIntPrimitive, _parseLong, _parseLong, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _wrapIOFailure, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatFeature, findFormatOverrides, findFormatOverrides, findValueNullProvider, getValueInstantiator, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleNestedArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializerMethods inherited from class tools.jackson.databind.ValueDeserializer
deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyValue, getKnownPropertyNames, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, resolve, unwrappingDeserializer
-
Field Details
-
_isLenient
protected final boolean _isLenient
-
-
Constructor Details
-
EditedDeserializer
public EditedDeserializer()
-
-
Method Details
-
_handleUnexpectedToken
-
isLenient
protected boolean isLenient() -
_fromEmptyString
-
logicalType
public tools.jackson.databind.type.LogicalType logicalType()- Overrides:
logicalTypein classtools.jackson.databind.deser.std.StdScalarDeserializer<T>
-
deserializeWithType
public Object deserializeWithType(tools.jackson.core.JsonParser arg0, tools.jackson.databind.DeserializationContext arg1, tools.jackson.databind.jsontype.TypeDeserializer arg2) throws tools.jackson.core.JacksonException - Overrides:
deserializeWithTypein classtools.jackson.databind.deser.std.StdScalarDeserializer<T>- Throws:
tools.jackson.core.JacksonException
-
_isValidTimestampString
-
_reportWrongToken
protected <BOGUS> BOGUS _reportWrongToken(tools.jackson.databind.DeserializationContext arg0, tools.jackson.core.JsonToken arg1, String arg2) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
_reportWrongToken
protected <BOGUS> BOGUS _reportWrongToken(tools.jackson.core.JsonParser arg0, tools.jackson.databind.DeserializationContext arg1, tools.jackson.core.JsonToken... arg2) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
_handleDateTimeException
protected <R> R _handleDateTimeException(tools.jackson.databind.DeserializationContext arg0, DateTimeException arg1, String arg2) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
_handleDateTimeFormatException
protected <R> R _handleDateTimeFormatException(tools.jackson.databind.DeserializationContext arg0, DateTimeException arg1, DateTimeFormatter arg2, String arg3) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
_handleUnexpectedToken
protected <R> R _handleUnexpectedToken(tools.jackson.databind.DeserializationContext arg0, tools.jackson.core.JsonParser arg1, tools.jackson.core.JsonToken... arg2) -
_failForNotLenient
protected Instant _failForNotLenient(tools.jackson.core.JsonParser arg0, tools.jackson.databind.DeserializationContext arg1, tools.jackson.core.JsonToken arg2) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
_peelDTE
-