public class LocalDateTypeSerializer extends AbstractDateTimeSerializer<LocalDate>
LocalDate type.UTCmodel| Constructor | Description |
|---|---|
LocalDateTypeSerializer(JsonBindingModel model) |
Creates a serializer.
|
| 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(JsonBindingModel model)
model - Binding model.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 © 2017 Oracle Corporation. All rights reserved.