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 Serializer<T> |
createSpecific(io.micronaut.core.type.Argument<? extends T> type,
Serializer.EncoderContext encoderContext)
Create a more specific serializer for the given definition.
|
default Deserializer<T> |
createSpecific(io.micronaut.core.type.Argument<? super T> context,
Deserializer.DecoderContext decoderContext)
Create a new child deserializer or return this if non is necessary for the given context.
|
java.time.temporal.TemporalQuery<T> |
query() |
isAbsent, isEmpty, serialize
allowNull, deserialize, deserializeNonNull
getDefaultValue
default Serializer<T> createSpecific(io.micronaut.core.type.Argument<? extends T> type, Serializer.EncoderContext encoderContext)
Serializer
createSpecific
in interface Serializer<T extends java.time.temporal.TemporalAccessor>
type
- The type definition including any annotation metadataencoderContext
- The encoder contextdefault Deserializer<T> createSpecific(io.micronaut.core.type.Argument<? super T> context, Deserializer.DecoderContext decoderContext) throws SerdeException
Deserializer
createSpecific
in interface Deserializer<T extends java.time.temporal.TemporalAccessor>
context
- The context, including any annotation metadata and type information to narrow the deserializer typedecoderContext
- The decoder contextSerdeException
@NonNull java.time.temporal.TemporalQuery<T> query()