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