Class ZonedDateTimeSerde
java.lang.Object
io.micronaut.serde.support.serdes.DefaultFormattedTemporalSerde<T>
io.micronaut.serde.support.serdes.ZonedDateTimeSerde
- All Implemented Interfaces:
io.micronaut.core.order.Ordered,Deserializer<ZonedDateTime>,Serde<ZonedDateTime>,Serializer<ZonedDateTime>,DeserializerRegistrar<ZonedDateTime>,SerdeRegistrar<ZonedDateTime>,TemporalSerde<ZonedDateTime>,SerializerRegistrar<ZonedDateTime>
public final class ZonedDateTimeSerde
extends DefaultFormattedTemporalSerde<T>
implements TemporalSerde<ZonedDateTime>, SerdeRegistrar<ZonedDateTime>
Zoned date time serde.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.serde.Deserializer
Deserializer.DecoderContextNested classes/interfaces inherited from interface io.micronaut.serde.Serializer
Serializer.EncoderContext -
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface io.micronaut.serde.support.serdes.TemporalSerde
UTC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DefaultFormattedTemporalSerde<ZonedDateTime>createSpecific(SerdeConfiguration configuration) Create the same serde with new configuration.protected ZonedDateTimefromNanos(long seconds, int nanos) protected intgetNanoPart(ZonedDateTime value) protected longgetSecondPart(ZonedDateTime value) io.micronaut.core.type.Argument<ZonedDateTime>getType()query()Methods inherited from class io.micronaut.serde.support.serdes.DefaultFormattedTemporalSerde
createSpecific, createSpecific, deserialize, serializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.serde.Deserializer
allowNull, deserialize, deserializeNullable, getDefaultValueMethods inherited from interface io.micronaut.core.order.Ordered
getOrderMethods inherited from interface io.micronaut.serde.support.SerdeRegistrar
getTypesMethods inherited from interface io.micronaut.serde.Serializer
isAbsent, isEmpty, serializeMethods inherited from interface io.micronaut.serde.support.serdes.TemporalSerde
createSpecific, createSpecific
-
Constructor Details
-
ZonedDateTimeSerde
-
-
Method Details
-
query
- Specified by:
queryin interfaceTemporalSerde<ZonedDateTime>- Returns:
- The temporal query for the type.
-
fromNanos
-
getSecondPart
-
getNanoPart
-
createSpecific
protected DefaultFormattedTemporalSerde<ZonedDateTime> createSpecific(SerdeConfiguration configuration) Description copied from class:DefaultFormattedTemporalSerdeCreate the same serde with new configuration.- Overrides:
createSpecificin classDefaultFormattedTemporalSerde<ZonedDateTime>- Parameters:
configuration- The new configuration- Returns:
- The updated serde
-
getType
- Specified by:
getTypein interfaceDeserializerRegistrar<ZonedDateTime>- Specified by:
getTypein interfaceSerdeRegistrar<ZonedDateTime>- Specified by:
getTypein interfaceSerializerRegistrar<ZonedDateTime>- Returns:
- The serde argument type
-