Class CustomizedObjectArrayDeserializer
java.lang.Object
io.micronaut.serde.support.serdes.CustomizedObjectArrayDeserializer
- All Implemented Interfaces:
Deserializer<Object[]>
Deserializer for object arrays.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.serde.Deserializer
Deserializer.DecoderContext
-
Constructor Summary
ConstructorDescriptionCustomizedObjectArrayDeserializer
(io.micronaut.core.type.Argument<Object> componentType, Deserializer<?> deserializer) -
Method Summary
Modifier and TypeMethodDescriptionObject[]
deserialize
(Decoder decoder, Deserializer.DecoderContext decoderContext, io.micronaut.core.type.Argument<? super Object[]> type) Deserializes from the current state of theDecoder
an object of typeDeserializer
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.serde.Deserializer
allowNull, createSpecific, deserializeNullable, getDefaultValue
-
Constructor Details
-
CustomizedObjectArrayDeserializer
public CustomizedObjectArrayDeserializer(io.micronaut.core.type.Argument<Object> componentType, Deserializer<?> deserializer)
-
-
Method Details
-
deserialize
public Object[] deserialize(Decoder decoder, Deserializer.DecoderContext decoderContext, io.micronaut.core.type.Argument<? super Object[]> type) throws IOException Description copied from interface:Deserializer
Deserializes from the current state of theDecoder
an object of typeDeserializer
.- Specified by:
deserialize
in interfaceDeserializer<Object[]>
- Parameters:
decoder
- The decoder, nevernull
decoderContext
- The decoder context, nevernull
type
- The generic type to be deserialized- Returns:
- The deserialized object or
null
only ifDeserializer.allowNull()
returnstrue
- Throws:
IOException
- If an error occurs during deserialization of the object
-