Package org.apache.commons.chain.web
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
Implementation of
Map
for immutable parameter name-values with
a parameter-provider.- Since:
- Chain 1.3
- Author:
- Graff Stefan
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionParamValuesMap
(P parameter, Function<String, String[]> valueFunction, Supplier<Enumeration<String>> namesSupplier) The constructor for an immutable parameter-map. -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsValue
(Object value) Returnstrue
if this parameter-map maps one or more keys to the specified value.Methods inherited from class org.apache.commons.chain.web.ParameterMap
clear, containsKey, entrySet, entrySet, equals, get, getNamesSupplier, getParameter, getValueFunction, hashCode, isEmpty, key, keySet, put, putAll, remove, size, toString, values
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
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-providervalueFunction
- Function to return the value of a parameternamesSupplier
- Supplier to return all names of the parameter
-
-
Method Details
-
containsValue
Returnstrue
if this parameter-map maps one or more keys to the specified value.- Specified by:
containsValue
in interfaceMap<String,
String[]> - Overrides:
containsValue
in classParameterMap<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
-