Class MultiValuesConverterFactory.ObjectToMultiValuesConverter
java.lang.Object
io.micronaut.core.convert.converters.MultiValuesConverterFactory.AbstractConverterToMultiValues<Object>
io.micronaut.core.convert.converters.MultiValuesConverterFactory.ObjectToMultiValuesConverter
- All Implemented Interfaces:
FormattingTypeConverter<Object,
,ConvertibleMultiValues, Format> TypeConverter<Object,
ConvertibleMultiValues>
- Enclosing class:
- MultiValuesConverterFactory
public static class MultiValuesConverterFactory.ObjectToMultiValuesConverter
extends MultiValuesConverterFactory.AbstractConverterToMultiValues<Object>
A converter from generic
Object
to ConvertibleMultiValues
.-
Field Summary
Fields inherited from class io.micronaut.core.convert.converters.MultiValuesConverterFactory.AbstractConverterToMultiValues
conversionService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addDeepObjectValues
(ArgumentConversionContext<Object> context, String name, Object object, MutableConvertibleMultiValuesMap<String> parameters) Method that adds given value to the parameters in A DEEP_OBJECT format.protected void
addMutliValues
(ArgumentConversionContext<Object> context, String name, Object object, MutableConvertibleMultiValuesMap<String> parameters) Method that adds given value to the parameters in a MULTI format.protected void
addSeparatedValues
(ArgumentConversionContext<Object> context, String name, Object object, MutableConvertibleMultiValuesMap<String> parameters, 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 Details
-
ObjectToMultiValuesConverter
-
-
Method Details
-
addSeparatedValues
protected void addSeparatedValues(ArgumentConversionContext<Object> context, String name, Object object, MutableConvertibleMultiValuesMap<String> parameters, 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<Object>
- 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<Object> context, String name, Object object, MutableConvertibleMultiValuesMap<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<Object>
- 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<Object> context, String name, Object object, MutableConvertibleMultiValuesMap<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<Object>
- 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
-