T
- The generic typepublic interface TemporalSerde<T extends java.time.temporal.TemporalAccessor> extends NullableSerde<T>
Serializer.EncoderContext
Deserializer.DecoderContext
Modifier and Type | Field and Description |
---|---|
static java.time.ZoneId |
UTC |
Modifier and Type | Method and Description |
---|---|
default Deserializer<T> |
createSpecific(Deserializer.DecoderContext decoderContext,
io.micronaut.core.type.Argument<? super T> context)
Create a new child deserializer or return this if non is necessary for the given context.
|
default Serializer<T> |
createSpecific(Serializer.EncoderContext context,
io.micronaut.core.type.Argument<? extends T> type)
Create a more specific serializer for the given definition.
|
java.time.temporal.TemporalQuery<T> |
query() |
isAbsent, isEmpty, serialize
allowNull, deserialize, deserializeNonNull
getDefaultValue
default Serializer<T> createSpecific(Serializer.EncoderContext context, io.micronaut.core.type.Argument<? extends T> type)
Serializer
createSpecific
in interface Serializer<T extends java.time.temporal.TemporalAccessor>
context
- The encoder contexttype
- The type definition including any annotation metadatadefault Deserializer<T> createSpecific(Deserializer.DecoderContext decoderContext, io.micronaut.core.type.Argument<? super T> context) throws SerdeException
Deserializer
createSpecific
in interface Deserializer<T extends java.time.temporal.TemporalAccessor>
decoderContext
- The decoder contextcontext
- The context, including any annotation metadata and type information to narrow the deserializer typeSerdeException
@NonNull java.time.temporal.TemporalQuery<T> query()