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