public class LocalDateTypeSerializer extends AbstractDateTimeSerializer<LocalDate>
LocalDate type.UTCcustomization| Constructor | Description |
|---|---|
LocalDateTypeSerializer(Customization customization) |
Creates a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected String |
formatDefault(LocalDate value,
Locale locale) |
Format with default formatter for a given
java.time date object. |
protected String |
formatStrictIJson(LocalDate value) |
Format date object as strict IJson date format.
|
protected Instant |
toInstant(LocalDate value) |
Convert java.time object to epoch milliseconds instant.
|
formatWithFormatter, getJsonbDateFormatter, getZonedFormatter, serialize, serialize, toJson, toTemporalAccessorpublic LocalDateTypeSerializer(Customization customization)
customization - Model customization.protected Instant toInstant(LocalDate value)
AbstractDateTimeSerializertoInstant in class AbstractDateTimeSerializer<LocalDate>value - date object to convertprotected String formatDefault(LocalDate value, Locale locale)
AbstractDateTimeSerializerjava.time date object.
Different default formatter for each date object type is used.formatDefault in class AbstractDateTimeSerializer<LocalDate>value - date objectlocale - locale from annotation / default not nullprotected String formatStrictIJson(LocalDate value)
AbstractDateTimeSerializerformatStrictIJson in class AbstractDateTimeSerializer<LocalDate>value - value to formatCopyright © 2018 Oracle Corporation. All rights reserved.