@Singleton public class ZonedDateTimeSerde extends DefaultFormattedTemporalSerde<java.time.ZonedDateTime> implements TemporalSerde<java.time.ZonedDateTime>
Serializer.EncoderContextDeserializer.DecoderContextUTC| Modifier | Constructor and Description |
|---|---|
protected |
ZonedDateTimeSerde(SerdeConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected java.time.ZonedDateTime |
deserializeNonNullWithoutFormat(Decoder decoder,
Deserializer.DecoderContext decoderContext,
io.micronaut.core.type.Argument<? super java.time.ZonedDateTime> type)
A method that is invoked when the value is known not to be null.
|
protected java.time.format.DateTimeFormatter |
getDefaultFormatter() |
java.time.temporal.TemporalQuery<java.time.ZonedDateTime> |
query() |
protected void |
serializeWithoutFormat(Encoder encoder,
Serializer.EncoderContext context,
java.time.ZonedDateTime value,
io.micronaut.core.type.Argument<? extends java.time.ZonedDateTime> type)
Serializes the given value using the passed
Encoder. |
deserializeNonNull, serializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSpecific, createSpecificisAbsent, isEmpty, serializeallowNull, deserialize, deserializeNonNullgetDefaultValueprotected ZonedDateTimeSerde(SerdeConfiguration configuration)
protected java.time.format.DateTimeFormatter getDefaultFormatter()
getDefaultFormatter in class DefaultFormattedTemporalSerde<java.time.ZonedDateTime>public java.time.temporal.TemporalQuery<java.time.ZonedDateTime> query()
query in interface TemporalSerde<java.time.ZonedDateTime>protected void serializeWithoutFormat(Encoder encoder, Serializer.EncoderContext context, java.time.ZonedDateTime value, io.micronaut.core.type.Argument<? extends java.time.ZonedDateTime> type) throws java.io.IOException
DefaultFormattedTemporalSerdeEncoder.serializeWithoutFormat in class DefaultFormattedTemporalSerde<java.time.ZonedDateTime>encoder - The encoder to usecontext - The encoder context, never nullvalue - The value, can be nulltype - Models the generic type of the valuejava.io.IOException - If an error occurs during serializationprotected java.time.ZonedDateTime deserializeNonNullWithoutFormat(Decoder decoder, Deserializer.DecoderContext decoderContext, io.micronaut.core.type.Argument<? super java.time.ZonedDateTime> type) throws java.io.IOException
DefaultFormattedTemporalSerdedeserializeNonNullWithoutFormat in class DefaultFormattedTemporalSerde<java.time.ZonedDateTime>decoder - The decoderdecoderContext - The decoder contexttype - The typejava.io.IOException - if something goes wrong during deserialization