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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDeepObjectValues(ArgumentConversionContext<Object> context, String name, Object object, MutableConvertibleMultiValuesMap<String> parameters) Method that adds given value to the parameters in A DEEP_OBJECT format.protected voidaddMutliValues(ArgumentConversionContext<Object> context, String name, Object object, MutableConvertibleMultiValuesMap<String> parameters) Method that adds given value to the parameters in a MULTI format.protected voidaddSeparatedValues(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, convertMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.AbstractConverterToMultiValuesMethod that adds given value to the parameters in a format separated by a delimiter.- Specified by:
addSeparatedValuesin 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.AbstractConverterToMultiValuesMethod that adds given value to the parameters in a MULTI format.- Specified by:
addMutliValuesin 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.AbstractConverterToMultiValuesMethod that adds given value to the parameters in A DEEP_OBJECT format.- Specified by:
addDeepObjectValuesin 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
-