public class ZonedDateTimeTypeDeserializer extends AbstractDateTimeDeserializer<ZonedDateTime>
ZonedDateTime type.UTC| Constructor | Description |
|---|---|
ZonedDateTimeTypeDeserializer(Customization customization) |
Creates an instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected ZonedDateTime |
fromInstant(Instant instant) |
fromInstant is called only in case
JsonbDateFormat is TIME_IN_MILLIS,
which doesn't make much sense for usage with ZonedDateTime. |
protected ZonedDateTime |
parseDefault(String jsonValue,
Locale locale) |
Parse
java.time date object with default formatter. |
protected ZonedDateTime |
parseWithFormatter(String jsonValue,
DateTimeFormatter formatter) |
Parse
java.time date object with provided formatter. |
deserialize, getJsonbDateFormatter, getZonedFormatterdeserialize, getCustomization, getPropertyTypepublic ZonedDateTimeTypeDeserializer(Customization customization)
customization - Model customization.protected ZonedDateTime fromInstant(Instant instant)
JsonbDateFormat is TIME_IN_MILLIS,
which doesn't make much sense for usage with ZonedDateTime.fromInstant in class AbstractDateTimeDeserializer<ZonedDateTime>instant - instant to construct fromprotected ZonedDateTime parseDefault(String jsonValue, Locale locale)
AbstractDateTimeDeserializerjava.time date object with default formatter.
Different default formatter for each date object type is used.parseDefault in class AbstractDateTimeDeserializer<ZonedDateTime>jsonValue - string value to parse fromlocale - annotated locale or defaultprotected ZonedDateTime parseWithFormatter(String jsonValue, DateTimeFormatter formatter)
AbstractDateTimeDeserializerjava.time date object with provided formatter.parseWithFormatter in class AbstractDateTimeDeserializer<ZonedDateTime>jsonValue - string value to parse fromformatter - a formatter to useCopyright © 2018 Oracle Corporation. All rights reserved.