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
ConstructorsConstructorDescriptionCustomizedObjectArrayDeserializer(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 theDecoderan object of typeDeserializer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:DeserializerDeserializes from the current state of theDecoderan object of typeDeserializer.- Specified by:
deserializein interfaceDeserializer<Object[]>- Parameters:
decoder- The decoder, nevernulldecoderContext- The decoder context, nevernulltype- The generic type to be deserialized- Returns:
- The deserialized object or
nullonly ifDeserializer.allowNull()returnstrue - Throws:
IOException- If an error occurs during deserialization of the object
-