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