Class EditedDeserializer

java.lang.Object
tools.jackson.databind.ValueDeserializer<Instant>
tools.jackson.databind.deser.std.StdDeserializer<Instant>
tools.jackson.databind.deser.std.StdScalarDeserializer<Instant>
tools.jackson.databind.ext.javatime.deser.JSR310DateTimeDeserializerBase<Instant>
tools.jackson.databind.ext.javatime.deser.InstantDeserializer<Instant>
io.github.yvasyliev.forwarder.telegram.reddit.deser.EditedDeserializer
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.FromIntegerArguments

    Nested classes/interfaces inherited from class tools.jackson.databind.ValueDeserializer

    tools.jackson.databind.ValueDeserializer.None
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final boolean
     

    Fields 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_TIME

    Fields inherited from class tools.jackson.databind.ext.javatime.deser.JSR310DateTimeDeserializerBase

    _formatter, _shape

    Fields inherited from class tools.jackson.databind.deser.std.StdDeserializer

    _valueClass, _valueType, F_MASK_INT_COERCIONS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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 boolean
     
     
    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 boolean
     
    tools.jackson.databind.type.LogicalType
     

    Methods inherited from class tools.jackson.databind.ext.javatime.deser.InstantDeserializer

    _countPeriods, _fromDecimal, _fromLong, _fromString, _truncateToMillis, _withFormatOverrides, deserialize, shouldAdjustToContextTimezone, shouldReadTimestampsAsNanoseconds, withDateFormat, withLeniency

    Methods inherited from class tools.jackson.databind.ext.javatime.deser.JSR310DateTimeDeserializerBase

    _throwNoNumericTimestampNeedTimeZone, createContextual, withShape

    Methods inherited from class tools.jackson.databind.deser.std.StdScalarDeserializer

    deserialize, getEmptyAccessPattern, getNullAccessPattern, supportsUpdate

    Methods 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, isDefaultKeyDeserializer

    Methods inherited from class tools.jackson.databind.ValueDeserializer

    deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyValue, getKnownPropertyNames, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, resolve, unwrappingDeserializer

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _isLenient

      protected final boolean _isLenient
  • Constructor Details

    • EditedDeserializer

      public EditedDeserializer()
  • Method Details

    • _handleUnexpectedToken

      protected <R> R _handleUnexpectedToken(tools.jackson.databind.DeserializationContext ctxt, tools.jackson.core.JsonParser p, String message, Object... args)
    • isLenient

      protected boolean isLenient()
    • _fromEmptyString

      protected Instant _fromEmptyString(tools.jackson.core.JsonParser arg0, tools.jackson.databind.DeserializationContext arg1, String arg2) throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • logicalType

      public tools.jackson.databind.type.LogicalType logicalType()
      Overrides:
      logicalType in class tools.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:
      deserializeWithType in class tools.jackson.databind.deser.std.StdScalarDeserializer<T>
      Throws:
      tools.jackson.core.JacksonException
    • _isValidTimestampString

      protected boolean _isValidTimestampString(String arg0)
    • _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

      protected DateTimeException _peelDTE(DateTimeException arg0)