Package io.micronaut.serde
Interface UpdatingDeserializer<T>
- Type Parameters:
T
- The generic type that the deserializer can deserialize
- All Superinterfaces:
Deserializer<T>
Interface that represents a deserializer capable of updating an existing object.
- Author:
- Jonas Konrad, graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.serde.Deserializer
Deserializer.DecoderContext
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deserializeInto
(@NonNull Decoder decoder, @NonNull Deserializer.DecoderContext decoderContext, @NonNull io.micronaut.core.type.Argument<? super T> type, T value) Deserializes from the current state of theDecoder
an object of typeUpdatingDeserializer
.Methods inherited from interface io.micronaut.serde.Deserializer
allowNull, createSpecific, deserialize, deserializeNullable, getDefaultValue
-
Method Details
-
deserializeInto
@Nullable void deserializeInto(@NonNull @NonNull Decoder decoder, @NonNull @NonNull Deserializer.DecoderContext decoderContext, @NonNull @NonNull io.micronaut.core.type.Argument<? super T> type, T value) throws IOException Deserializes from the current state of theDecoder
an object of typeUpdatingDeserializer
.- Parameters:
decoder
- The decoder, nevernull
decoderContext
- The decoder context, nevernull
type
- The generic type to be deserializedvalue
- The value- Throws:
IOException
- If an error occurs during deserialization of the object
-