Class InstantSerde
java.lang.Object
io.micronaut.serde.support.serdes.DefaultFormattedTemporalSerde<T>
io.micronaut.serde.support.serdes.InstantSerde
- All Implemented Interfaces:
Deserializer<Instant>
,Serde<Instant>
,Serializer<Instant>
,TemporalSerde<Instant>
@Singleton
public final class InstantSerde
extends DefaultFormattedTemporalSerde<T>
implements TemporalSerde<Instant>
Serde used for
Instant
.- Since:
- 1.0.0
-
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 Instant
fromNanos
(long seconds, int nanos) protected int
getNanoPart
(Instant value) protected long
getSecondPart
(Instant value) query()
Methods inherited from class io.micronaut.serde.support.serdes.DefaultFormattedTemporalSerde
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, deserialize, deserializeNullable, getDefaultValue
Methods inherited from interface io.micronaut.serde.Serializer
isAbsent, isEmpty, serialize
Methods inherited from interface io.micronaut.serde.support.serdes.TemporalSerde
createSpecific, createSpecific
-
Method Details
-
query
- Specified by:
query
in interfaceTemporalSerde<Instant>
- Returns:
- The temporal query for the type.
-
getSecondPart
-
getNanoPart
-
fromNanos
-