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
ConstructorsConstructorDescriptionParamValuesMap(P parameter, Function<String, String[]> valueFunction, Supplier<Enumeration<String>> namesSupplier) The constructor for an immutable parameter-map. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsValue(Object value) Returnstrueif 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, valuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
Returnstrueif this parameter-map maps one or more keys to the specified value.- Specified by:
containsValuein interfaceMap<String,String[]> - Overrides:
containsValuein classParameterMap<P,String[]> - Parameters:
value- value whose presence in this parameter-map is to be tested- Returns:
trueif this parameter-map maps one or more keys to the specified value
-