public static class MultiValuesConverterFactory.MultiValuesToIterableConverter
extends java.lang.Object
ConvertibleMultiValues
to an Iterable
.Constructor and Description |
---|
MultiValuesToIterableConverter(ConversionService<?> conversionService) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Optional<java.lang.Iterable> |
retrieveDeepObjectValue(ArgumentConversionContext<java.lang.Iterable> conversionContext,
java.lang.String name,
ConvertibleMultiValues<java.lang.String> parameters)
Method to retrieve the values from a parameter in DEEP_OBJECT format and return in desired type.
|
protected java.util.Optional<java.lang.Iterable> |
retrieveMultiValue(ArgumentConversionContext<java.lang.Iterable> conversionContext,
java.lang.String name,
ConvertibleMultiValues<java.lang.String> parameters)
Method to retrieve the values from a parameter in MULTI format and return in desired type.
|
protected java.util.Optional<java.lang.Iterable> |
retrieveSeparatedValue(ArgumentConversionContext<java.lang.Iterable> conversionContext,
java.lang.String name,
ConvertibleMultiValues<java.lang.String> parameters,
java.lang.String defaultValue,
java.lang.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, wait
convert, of
public MultiValuesToIterableConverter(ConversionService<?> conversionService)
protected java.util.Optional<java.lang.Iterable> retrieveSeparatedValue(ArgumentConversionContext<java.lang.Iterable> conversionContext, java.lang.String name, ConvertibleMultiValues<java.lang.String> parameters, java.lang.String defaultValue, java.lang.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 java.util.Optional<java.lang.Iterable> retrieveMultiValue(ArgumentConversionContext<java.lang.Iterable> conversionContext, java.lang.String name, ConvertibleMultiValues<java.lang.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 java.util.Optional<java.lang.Iterable> retrieveDeepObjectValue(ArgumentConversionContext<java.lang.Iterable> conversionContext, java.lang.String name, ConvertibleMultiValues<java.lang.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