Class MultiValuesConverterFactory.IterableToMultiValuesConverter
- java.lang.Object
-
- io.micronaut.core.convert.converters.MultiValuesConverterFactory.AbstractConverterToMultiValues<java.lang.Iterable>
-
- io.micronaut.core.convert.converters.MultiValuesConverterFactory.IterableToMultiValuesConverter
-
- All Implemented Interfaces:
FormattingTypeConverter<java.lang.Iterable,ConvertibleMultiValues,Format>
,TypeConverter<java.lang.Iterable,ConvertibleMultiValues>
- Enclosing class:
- MultiValuesConverterFactory
public static class MultiValuesConverterFactory.IterableToMultiValuesConverter extends MultiValuesConverterFactory.AbstractConverterToMultiValues<java.lang.Iterable>
A converter fromIterable
toConvertibleMultiValues
.
-
-
Field Summary
-
Fields inherited from class io.micronaut.core.convert.converters.MultiValuesConverterFactory.AbstractConverterToMultiValues
conversionService
-
-
Constructor Summary
Constructors Constructor Description IterableToMultiValuesConverter(ConversionService<?> conversionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addDeepObjectValues(ArgumentConversionContext<java.lang.Object> context, java.lang.String name, java.lang.Iterable object, MutableConvertibleMultiValuesMap<java.lang.String> parameters)
Method that adds given value to the parameters in A DEEP_OBJECT format.protected void
addMutliValues(ArgumentConversionContext<java.lang.Object> context, java.lang.String name, java.lang.Iterable object, MutableConvertibleMultiValuesMap<java.lang.String> parameters)
Method that adds given value to the parameters in a MULTI format.protected void
addSeparatedValues(ArgumentConversionContext<java.lang.Object> context, java.lang.String name, java.lang.Iterable object, MutableConvertibleMultiValuesMap<java.lang.String> parameters, java.lang.Character delimiter)
Method that adds given value to the parameters in a format separated by a delimiter.-
Methods inherited from class io.micronaut.core.convert.converters.MultiValuesConverterFactory.AbstractConverterToMultiValues
annotationType, convert
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.micronaut.core.convert.TypeConverter
convert
-
-
-
-
Constructor Detail
-
IterableToMultiValuesConverter
public IterableToMultiValuesConverter(ConversionService<?> conversionService)
-
-
Method Detail
-
addSeparatedValues
protected void addSeparatedValues(ArgumentConversionContext<java.lang.Object> context, java.lang.String name, java.lang.Iterable object, MutableConvertibleMultiValuesMap<java.lang.String> parameters, java.lang.Character delimiter)
Description copied from class:MultiValuesConverterFactory.AbstractConverterToMultiValues
Method that adds given value to the parameters in a format separated by a delimiter.- Specified by:
addSeparatedValues
in classMultiValuesConverterFactory.AbstractConverterToMultiValues<java.lang.Iterable>
- Parameters:
context
- - the context of conversion which has the source type and any present annotationsname
- - the name of the parameterobject
- - the object that we are converting fromparameters
- - the parameters to the value of additional parameter will be addeddelimiter
- - the required delimiter of the values in the parameter String
-
addMutliValues
protected void addMutliValues(ArgumentConversionContext<java.lang.Object> context, java.lang.String name, java.lang.Iterable object, MutableConvertibleMultiValuesMap<java.lang.String> parameters)
Description copied from class:MultiValuesConverterFactory.AbstractConverterToMultiValues
Method that adds given value to the parameters in a MULTI format.- Specified by:
addMutliValues
in classMultiValuesConverterFactory.AbstractConverterToMultiValues<java.lang.Iterable>
- Parameters:
context
- - the context of conversion which has the source type and any present annotationsname
- - the name of the parameterobject
- - the object that we are converting fromparameters
- - the parameters to the value of additional parameter will be added
-
addDeepObjectValues
protected void addDeepObjectValues(ArgumentConversionContext<java.lang.Object> context, java.lang.String name, java.lang.Iterable object, MutableConvertibleMultiValuesMap<java.lang.String> parameters)
Description copied from class:MultiValuesConverterFactory.AbstractConverterToMultiValues
Method that adds given value to the parameters in A DEEP_OBJECT format.- Specified by:
addDeepObjectValues
in classMultiValuesConverterFactory.AbstractConverterToMultiValues<java.lang.Iterable>
- Parameters:
context
- - the context of conversion which has the source type and any present annotationsname
- - the name of the parameterobject
- - the object that we are converting fromparameters
- - the parameters to the value of additional parameter will be added
-
-