Class FnMultiValueMap

java.lang.Object
io.micronaut.oraclecloud.function.http.FnMultiValueMap
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 FnMultiValueMap extends Object implements io.micronaut.core.convert.value.ConvertibleMultiValues<String>
Implementation for Project.fn of a multi value map.
Since:
1.0.0
Author:
graemerocher
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected io.micronaut.core.convert.ConversionService
     

    Fields inherited from interface io.micronaut.core.convert.value.ConvertibleValues

    EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
    FnMultiValueMap(Map<String,List<String>> map, io.micronaut.core.convert.ConversionService conversionService)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
     
    <T> Optional<T>
    get(CharSequence name, io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext)
     
     
     
    void
    setConversionService(@NonNull io.micronaut.core.convert.ConversionService conversionService)
     
     

    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.value.ConvertibleMultiValues

    forEach, forEachValue, getFirst, getFirst, getFirst, getFirst, getFirst, isEmpty, iterator

    Methods inherited from interface io.micronaut.core.convert.value.ConvertibleValues

    asMap, asMap, asProperties, contains, getConversionService, getValue, getValueType, subMap, subMap, subMap

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface io.micronaut.core.value.ValueResolver

    get, get, get
  • Field Details

    • conversionService

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

    • FnMultiValueMap

      public FnMultiValueMap(Map<String,List<String>> map, io.micronaut.core.convert.ConversionService conversionService)
      Default constructor.
      Parameters:
      map - The target map. Never null
      conversionService - The conversion service
  • Method Details

    • 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>
    • setConversionService

      public void setConversionService(@NonNull @NonNull io.micronaut.core.convert.ConversionService conversionService)
      Parameters:
      conversionService - The conversion service.