Interface FormattedDeserializer<T>
- Type Parameters:
T- The type to be deserialized
- All Superinterfaces:
Deserializer<T>
- All Known Subinterfaces:
FormattedSerde<T>, NumberSerde<N>, TemporalSerde<T>
- All Known Implementing Classes:
DefaultFormattedTemporalSerde, InstantSerde, LocalDateSerde, LocalDateTimeSerde, LocalTimeSerde, ObjectArraySerde, OffsetDateTimeSerde, YearSerde, ZonedDateTimeSerde
A deserializer that can react to format metadata.
- Since:
- 3.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from interface Deserializer
Deserializer.DecoderContext -
Method Summary
Modifier and TypeMethodDescriptiondefault Deserializer<T> createSpecific(Deserializer.DecoderContext context, io.micronaut.core.type.Argument<? super T> type, FormatConfiguration format) Create a more specific deserializer for the given definition and format configuration.Methods inherited from interface Deserializer
createSpecific, deserialize, deserializeNullable, getDefaultValue
-
Method Details
-
createSpecific
default Deserializer<T> createSpecific(Deserializer.DecoderContext context, io.micronaut.core.type.Argument<? super T> type, FormatConfiguration format) throws SerdeException Create a more specific deserializer for the given definition and format configuration.- Parameters:
context- The decoder contexttype- The type definition including any annotation metadataformat- The format configuration- Returns:
- The more specific deserializer
- Throws:
SerdeException- If the deserializer cannot be selected
-