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