Class OffsetDateTimeSerde
java.lang.Object
io.micronaut.serde.support.serdes.DefaultFormattedTemporalSerde<T>
io.micronaut.serde.support.serdes.OffsetDateTimeSerde
- All Implemented Interfaces:
Deserializer<OffsetDateTime>
,Serde<OffsetDateTime>
,Serializer<OffsetDateTime>
,TemporalSerde<OffsetDateTime>
Serde for OffsetDateTime.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.serde.Deserializer
Deserializer.DecoderContext
Nested classes/interfaces inherited from interface io.micronaut.serde.Serializer
Serializer.EncoderContext
-
Field Summary
Fields inherited from interface io.micronaut.serde.support.serdes.TemporalSerde
UTC
-
Method Summary
Modifier and TypeMethodDescriptionprotected DefaultFormattedTemporalSerde<OffsetDateTime>
createSpecific
(SerdeConfiguration configuration) Create the same serde with new configuration.protected OffsetDateTime
fromNanos
(long seconds, int nanos) protected int
getNanoPart
(OffsetDateTime value) protected long
getSecondPart
(OffsetDateTime value) query()
Methods inherited from class io.micronaut.serde.support.serdes.DefaultFormattedTemporalSerde
createSpecific, createSpecific, deserialize, serialize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.serde.Deserializer
allowNull, deserializeNullable, getDefaultValue
Methods inherited from interface io.micronaut.serde.Serializer
isAbsent, isEmpty
-
Method Details
-
query
- Returns:
- The temporal query for the type.
-
fromNanos
-
getSecondPart
-
getNanoPart
-
createSpecific
protected DefaultFormattedTemporalSerde<OffsetDateTime> createSpecific(SerdeConfiguration configuration) Description copied from class:DefaultFormattedTemporalSerde
Create the same serde with new configuration.- Overrides:
createSpecific
in classDefaultFormattedTemporalSerde<OffsetDateTime>
- Parameters:
configuration
- The new configuration- Returns:
- The updated serde
-