Class MutableMapListOfStringAndMapStringConvertibleMultiValue

java.lang.Object
io.micronaut.function.aws.proxy.MutableMapListOfStringAndMapStringConvertibleMultiValue
All Implemented Interfaces:
io.micronaut.core.convert.ConversionServiceProvider, io.micronaut.core.convert.value.ConvertibleMultiValues<String>, io.micronaut.core.convert.value.ConvertibleValues<List<String>>, io.micronaut.core.value.ValueResolver<CharSequence>, Iterable<Map.Entry<String,List<String>>>

@Internal public class MutableMapListOfStringAndMapStringConvertibleMultiValue extends Object
A mutable version of MapListOfStringAndMapStringConvertibleMultiValue.
  • Field Details

    • values

      protected Map<String,List<String>> values
    • conversionService

      protected io.micronaut.core.convert.ConversionService conversionService
  • Constructor Details

    • MutableMapListOfStringAndMapStringConvertibleMultiValue

      public MutableMapListOfStringAndMapStringConvertibleMultiValue(io.micronaut.core.convert.ConversionService conversionService, Map<String,List<String>> multi, Map<String,String> single)
  • Method Details

    • add

      public void add(CharSequence name, List<CharSequence> valuesToBeAdded)
      Adds the given values to the existing values for the given name.
      Parameters:
      name -
      valuesToBeAdded -
    • add

      public void add(CharSequence name, CharSequence value)
      Adds the given value to the existing values for the given name.
      Parameters:
      name -
      value -
    • remove

      public void remove(CharSequence header)
      Removes the given header.
      Parameters:
      header -
    • setConversionService

      public void setConversionService(io.micronaut.core.convert.ConversionService conversionService)
      Sets the conversion service.
      Parameters:
      conversionService -
    • getAll

      public List<String> getAll(CharSequence name)
      Specified by:
      getAll in interface io.micronaut.core.convert.value.ConvertibleMultiValues<String>
    • get

      @Nullable public @Nullable String get(CharSequence name)
      Specified by:
      get in interface io.micronaut.core.convert.value.ConvertibleMultiValues<String>
    • names

      public Set<String> names()
      Specified by:
      names in interface io.micronaut.core.convert.value.ConvertibleValues<List<String>>
    • values

      public Collection<List<String>> values()
      Specified by:
      values in interface io.micronaut.core.convert.value.ConvertibleValues<List<String>>
    • get

      public <T> Optional<T> get(CharSequence name, io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext)
      Specified by:
      get in interface io.micronaut.core.value.ValueResolver<CharSequence>