public class LocalDateTimeTypeDeserializer extends AbstractDateTimeDeserializer<LocalDateTime>
LocalDateTime type.UTC| Constructor | Description |
|---|---|
LocalDateTimeTypeDeserializer(Customization customization) |
Creates an instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected LocalDateTime |
fromInstant(Instant instant) |
Construct date object from an instant containing epoch millisecond.
|
protected LocalDateTime |
parseDefault(String jsonValue,
Locale locale) |
Parse
java.time date object with default formatter. |
protected LocalDateTime |
parseWithFormatter(String jsonValue,
DateTimeFormatter formatter) |
Parse
java.time date object with provided formatter. |
deserialize, getJsonbDateFormatter, getZonedFormatterdeserialize, getCustomization, getPropertyTypepublic LocalDateTimeTypeDeserializer(Customization customization)
customization - Model customization.protected LocalDateTime fromInstant(Instant instant)
AbstractDateTimeDeserializerfromInstant in class AbstractDateTimeDeserializer<LocalDateTime>instant - instant to construct fromprotected LocalDateTime 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<LocalDateTime>jsonValue - string value to parse fromlocale - annotated locale or defaultprotected LocalDateTime parseWithFormatter(String jsonValue, DateTimeFormatter formatter)
AbstractDateTimeDeserializerjava.time date object with provided formatter.parseWithFormatter in class AbstractDateTimeDeserializer<LocalDateTime>jsonValue - string value to parse fromformatter - a formatter to useCopyright © 2018 Oracle Corporation. All rights reserved.