Class LenientOffsetDateTimeDeserializer
java.lang.Object
tools.jackson.databind.ValueDeserializer<@Nullable OffsetDateTime>
io.skipcheck.tm1.client.odata.LenientOffsetDateTimeDeserializer
- All Implemented Interfaces:
tools.jackson.databind.deser.NullValueProvider
public final class LenientOffsetDateTimeDeserializer
extends tools.jackson.databind.ValueDeserializer<@Nullable OffsetDateTime>
Reads an
Edm.DateTimeOffset that a server sometimes fills with something that
isn't one, such as TM1's 0000-00-00T00:00Z: as null, rather than
failing the whole response. The generated model uses it where a server is known to do
this.-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.ValueDeserializer
tools.jackson.databind.ValueDeserializer.None -
Constructor Summary
ConstructorsConstructorDescriptionThe deserializer; Jackson makes it from@JsonDeserialize(using = …). -
Method Summary
Modifier and TypeMethodDescription@Nullable OffsetDateTimedeserialize(tools.jackson.core.JsonParser parser, tools.jackson.databind.DeserializationContext context) Methods inherited from class tools.jackson.databind.ValueDeserializer
createContextual, deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, resolve, supportsUpdate, unwrappingDeserializer
-
Constructor Details
-
LenientOffsetDateTimeDeserializer
public LenientOffsetDateTimeDeserializer()The deserializer; Jackson makes it from@JsonDeserialize(using = …).
-
-
Method Details
-
deserialize
public @Nullable OffsetDateTime deserialize(tools.jackson.core.JsonParser parser, tools.jackson.databind.DeserializationContext context) - Specified by:
deserializein classtools.jackson.databind.ValueDeserializer<@Nullable OffsetDateTime>
-