Class ParamValuesMap<P>

java.lang.Object
org.apache.commons.chain.web.ParameterMap<P,String[]>
org.apache.commons.chain.web.ParamValuesMap<P>
Type Parameters:
P - the type of the parameter-provider
All Implemented Interfaces:
Map<String,String[]>

public class ParamValuesMap<P> extends ParameterMap<P,String[]>
Implementation of Map for immutable parameter name-values with a parameter-provider.
Since:
Chain 1.3
Author:
Graff Stefan
  • Constructor Details

    • ParamValuesMap

      public ParamValuesMap(P parameter, Function<String,String[]> valueFunction, Supplier<Enumeration<String>> namesSupplier)
      The constructor for an immutable parameter-map.
      Parameters:
      parameter - the parameter-provider
      valueFunction - Function to return the value of a parameter
      namesSupplier - Supplier to return all names of the parameter
  • Method Details

    • containsValue

      public boolean containsValue(Object value)
      Returns true if this parameter-map maps one or more keys to the specified value.
      Specified by:
      containsValue in interface Map<String,String[]>
      Overrides:
      containsValue in class ParameterMap<P,String[]>
      Parameters:
      value - value whose presence in this parameter-map is to be tested
      Returns:
      true if this parameter-map maps one or more keys to the specified value