public static class MultiValuesConverterFactory.MultiValuesToIterableConverter extends Object
ConvertibleMultiValues to an Iterable.| Constructor and Description |
|---|
MultiValuesToIterableConverter(ConversionService<?> conversionService) |
| Modifier and Type | Method and Description |
|---|---|
protected Optional<Iterable> |
retrieveDeepObjectValue(ArgumentConversionContext<Iterable> conversionContext,
String name,
ConvertibleMultiValues<String> parameters)
Method to retrieve the values from a parameter in DEEP_OBJECT format and return in desired type.
|
protected Optional<Iterable> |
retrieveMultiValue(ArgumentConversionContext<Iterable> conversionContext,
String name,
ConvertibleMultiValues<String> parameters)
Method to retrieve the values from a parameter in MULTI format and return in desired type.
|
protected Optional<Iterable> |
retrieveSeparatedValue(ArgumentConversionContext<Iterable> conversionContext,
String name,
ConvertibleMultiValues<String> parameters,
String defaultValue,
Character delimiter)
Method to retrieve the values from a separated parameter and return the parameter in desired type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvert, ofpublic MultiValuesToIterableConverter(ConversionService<?> conversionService)
protected Optional<Iterable> retrieveSeparatedValue(ArgumentConversionContext<Iterable> conversionContext, String name, ConvertibleMultiValues<String> parameters, String defaultValue, Character delimiter)
conversionContext - the conversion context of the value to which conversion is done
(including type and annotations)name - the name of the parameterparameters - all the parameters from which the parameter of given name needs to be retrieveddefaultValue - default valuedelimiter - the delimiter of the values in the parameter Stringprotected Optional<Iterable> retrieveMultiValue(ArgumentConversionContext<Iterable> conversionContext, String name, ConvertibleMultiValues<String> parameters)
conversionContext - the conversion context of the value to which conversion is done
(including type and annotations)name - the name of the parameterparameters - all the parameters from which the parameter of given name needs to be retrievedprotected Optional<Iterable> retrieveDeepObjectValue(ArgumentConversionContext<Iterable> conversionContext, String name, ConvertibleMultiValues<String> parameters)
conversionContext - the conversion context of the value to which conversion is done
(including type and annotations)name - the name of the parameterparameters - all the parameters from which the parameter of given name needs to be retrieved