Interface TemporalSerde<T extends TemporalAccessor>
- Type Parameters:
- T- The generic type
- All Superinterfaces:
- Deserializer<T>,- Serde<T>,- Serializer<T>
- All Known Implementing Classes:
- DefaultFormattedTemporalSerde,- InstantSerde,- LocalDateSerde,- LocalDateTimeSerde,- LocalTimeSerde,- OffsetDateTimeSerde,- YearSerde,- ZonedDateTimeSerde
Interface for serializing and deserializing temporals.
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.micronaut.serde.DeserializerDeserializer.DecoderContextNested classes/interfaces inherited from interface io.micronaut.serde.SerializerSerializer.EncoderContext
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiondefault 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.@NonNull TemporalQuery<T>query()Methods inherited from interface io.micronaut.serde.DeserializerallowNull, deserialize, deserializeNullable, getDefaultValueMethods inherited from interface io.micronaut.serde.SerializerisAbsent, isDefault, isEmpty, serialize
- 
Field Details- 
UTC
 
- 
- 
Method Details- 
createSpecificdefault Serializer<T> createSpecific(Serializer.EncoderContext context, io.micronaut.core.type.Argument<? extends T> type) Description copied from interface:SerializerCreate a more specific serializer for the given definition.- Specified by:
- createSpecificin interface- Serializer<T extends TemporalAccessor>
- Parameters:
- context- The encoder context
- type- The type definition including any annotation metadata
- Returns:
- The more specific serializer
 
- 
createSpecificdefault Deserializer<T> createSpecific(Deserializer.DecoderContext decoderContext, io.micronaut.core.type.Argument<? super T> context) throws SerdeException Description copied from interface:DeserializerCreate a new child deserializer or return this if non is necessary for the given context.- Specified by:
- createSpecificin interface- Deserializer<T extends TemporalAccessor>
- Parameters:
- decoderContext- The decoder context
- context- The context, including any annotation metadata and type information to narrow the deserializer type
- Returns:
- An instance of the same type of deserializer
- Throws:
- SerdeException
 
- 
query- Returns:
- The temporal query for the type.
 
 
-