@Singleton public class ArrayNodeToIterableConverter extends Object implements TypeConverter<com.fasterxml.jackson.databind.node.ArrayNode,Iterable>
| Constructor and Description |
|---|
ArrayNodeToIterableConverter(ConversionService conversionService)
Create a new converter to convert from json to given type iteratively.
|
ArrayNodeToIterableConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
ConversionService conversionService)
Deprecated.
Use
ArrayNodeToIterableConverter(ConversionService) instead |
| Modifier and Type | Method and Description |
|---|---|
Optional<Iterable> |
convert(com.fasterxml.jackson.databind.node.ArrayNode node,
Class<Iterable> targetType,
ConversionContext context)
Converts from the given source object type to the target type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvert, of@Deprecated public ArrayNodeToIterableConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ConversionService conversionService)
ArrayNodeToIterableConverter(ConversionService) insteadobjectMapper - To convert from JsonconversionService - Convert the given json node to the given target type.@Inject public ArrayNodeToIterableConverter(ConversionService conversionService)
conversionService - Convert the given json node to the given target type.public Optional<Iterable> convert(com.fasterxml.jackson.databind.node.ArrayNode node, Class<Iterable> targetType, ConversionContext context)
TypeConverterOptional.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,Iterable>node - The object typetargetType - The target type being converted tocontext - The ConversionContext