Class ParameterMap

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class ParameterMap
    extends org.jvnet.hk2.component.MultiMap<String,​String>
    A map from parameter name to a list of parameter values. (Really just a more convenient name for MultiMap.)
    See Also:
    Serialized Form
    • Constructor Detail

      • ParameterMap

        public ParameterMap()
        Creates an empty ParameterMap.
      • ParameterMap

        public ParameterMap​(ParameterMap base)
        Copy constructor - copies all entries from base.
        Parameters:
        base - source of entries
    • Method Detail

      • insert

        public ParameterMap insert​(String key,
                                   String value)
        Fluent API for adding parameters to the map.
        Parameters:
        key -
        value -
        Returns:
        ParameterMap
      • insert

        public ParameterMap insert​(String key,
                                   String value,
                                   String defaultValue)
        Fluent API for adding parameters to the map.
        Parameters:
        key -
        value - - used if not null
        defaultValue - - used if the value is null
        Returns:
        ParameterMap
      • insert

        public ParameterMap insert​(String key,
                                   String value,
                                   Supplier<String> defaultValueSupplier)
        Fluent API for adding parameters to the map.
        Parameters:
        key -
        value - - used if not null
        defaultValueSupplier - - used if the value is null, must not be null.
        Returns:
        ParameterMap