Class ZonedDateTimeJsonDeserializer
java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<ZonedDateTime>
tech.corefinance.common.converter.json.ZonedDateTimeJsonDeserializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
@Component
@ConditionalOnProperty(prefix="spring.jackson-custom.serialization",
name="zoned-date-time-format")
public class ZonedDateTimeJsonDeserializer
extends com.fasterxml.jackson.databind.JsonDeserializer<ZonedDateTime>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
com.fasterxml.jackson.databind.JsonDeserializer.None -
Constructor Summary
ConstructorsConstructorDescriptionZonedDateTimeJsonDeserializer(String dateTimeFormat, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandeserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) booleaninthashCode()voidsetDateTimeFormatter(DateTimeFormatter dateTimeFormatter) toString()Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
-
Constructor Details
-
ZonedDateTimeJsonDeserializer
public ZonedDateTimeJsonDeserializer(@Value("${spring.jackson-custom.serialization.zoned-date-time-format}") String dateTimeFormat, @Autowired com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
deserialize
public ZonedDateTime deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException - Specified by:
deserializein classcom.fasterxml.jackson.databind.JsonDeserializer<ZonedDateTime>- Throws:
IOException
-
getDateTimeFormatter
-
setDateTimeFormatter
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-