Package me.ahoo.cosid.jackson
Class AsStringDeserializer
java.lang.Object
tools.jackson.databind.ValueDeserializer<Long>
me.ahoo.cosid.jackson.AsStringDeserializer
- All Implemented Interfaces:
tools.jackson.databind.deser.NullValueProvider
Reads an
AsString id. A JSON string is decoded, an empty one is null; a JSON number is the id itself if
the codec could have written it. Text the codec cannot read is reported through
DeserializationContext.handleWeirdStringValue(java.lang.Class<?>, java.lang.String, java.lang.String, java.lang.Object...), an InvalidFormatException (a client error) by default.-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.ValueDeserializer
tools.jackson.databind.ValueDeserializer.None -
Constructor Summary
ConstructorsConstructorDescriptionA deserializer of decimal text, without a runtime: what@JsonDeserialize(using = ...)creates. -
Method Summary
Modifier and TypeMethodDescriptiontools.jackson.databind.ValueDeserializer<?> createContextual(tools.jackson.databind.DeserializationContext ctxt, tools.jackson.databind.BeanProperty property) deserialize(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt) Class<?> Methods inherited from class tools.jackson.databind.ValueDeserializer
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getObjectIdReader, isCachable, logicalType, replaceDelegatee, resolve, supportsUpdate, unwrappingDeserializer
-
Constructor Details
-
AsStringDeserializer
public AsStringDeserializer()A deserializer of decimal text, without a runtime: what@JsonDeserialize(using = ...)creates.
-
-
Method Details
-
createContextual
public tools.jackson.databind.ValueDeserializer<?> createContextual(tools.jackson.databind.DeserializationContext ctxt, tools.jackson.databind.BeanProperty property) - Overrides:
createContextualin classtools.jackson.databind.ValueDeserializer<Long>
-
deserialize
public Long deserialize(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt) - Specified by:
deserializein classtools.jackson.databind.ValueDeserializer<Long>
-
handledType
- Overrides:
handledTypein classtools.jackson.databind.ValueDeserializer<Long>
-