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