JacksonConverterRegistrar
@Deprecated public class ArrayNodeToIterableConverter extends java.lang.Object implements TypeConverter<com.fasterxml.jackson.databind.node.ArrayNode,java.lang.Iterable>
Constructor and Description |
---|
ArrayNodeToIterableConverter(ConversionService conversionService)
Deprecated.
Create a new converter to convert from json to given type iteratively.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.Iterable> |
convert(com.fasterxml.jackson.databind.node.ArrayNode node,
java.lang.Class<java.lang.Iterable> targetType,
ConversionContext context)
Deprecated.
Converts from the given source object type to the target type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convert, of
public ArrayNodeToIterableConverter(ConversionService conversionService)
conversionService
- Convert the given json node to the given target type.public java.util.Optional<java.lang.Iterable> convert(com.fasterxml.jackson.databind.node.ArrayNode node, java.lang.Class<java.lang.Iterable> targetType, ConversionContext context)
TypeConverter
Optional.empty()
in case the object is not convertible by catching any necessary exceptions and failing gracefully.convert
in interface TypeConverter<com.fasterxml.jackson.databind.node.ArrayNode,java.lang.Iterable>
node
- The object typetargetType
- The target type being converted tocontext
- The ConversionContext