java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.String[]>public class ParameterMap
extends java.util.LinkedHashMap<java.lang.String,java.lang.String[]>
Created: 2008. 06. 11 PM 8:55:13
| Constructor | Description |
|---|---|
ParameterMap() |
Instantiates a new ParameterMap.
|
ParameterMap(int initialCapacity) |
Instantiates a new ParameterMap.
|
ParameterMap(java.util.Map<java.lang.String,java.lang.String[]> params) |
Instantiates a new ParameterMap.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getParameter(java.lang.String name) |
Returns the string value to which the specified name is mapped,
or
null if this map contains no mapping for the name. |
java.util.Enumeration<java.lang.String> |
getParameterNames() |
Returns an
Enumeration of String objects containing
the names of the parameters. |
java.lang.String[] |
getParameterValues(java.lang.String name) |
Returns the string values to which the specified name is mapped,
or
null if this map contains no mapping for the name. |
void |
setAll(java.util.Map<java.lang.String,java.lang.String> params) |
Set the given parameters under.
|
void |
setParameter(java.lang.String name,
java.lang.String value) |
Sets the value to the parameter with the given name.
|
void |
setParameterValues(java.lang.String name,
java.lang.String[] values) |
Sets the values to the parameter with the given name.
|
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeclear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuespublic ParameterMap()
public ParameterMap(int initialCapacity)
initialCapacity - the initial capacitypublic ParameterMap(java.util.Map<java.lang.String,java.lang.String[]> params)
params - the other parameter mappublic java.lang.String getParameter(java.lang.String name)
null if this map contains no mapping for the name.name - the parameter nameString representing the
single value of the parameterpublic java.lang.String[] getParameterValues(java.lang.String name)
null if this map contains no mapping for the name.name - the parameter nameString objects
containing the parameter's valuespublic void setParameter(java.lang.String name,
java.lang.String value)
name - a String specifying the name of the parametervalue - a String representing the
single value of the parametersetParameterValues(String, String[])public void setParameterValues(java.lang.String name,
java.lang.String[] values)
name - a String specifying the name of the parametervalues - an array of String objects
containing the parameter's valuessetParameter(java.lang.String, java.lang.String)public java.util.Enumeration<java.lang.String> getParameterNames()
Enumeration of String objects containing
the names of the parameters.
If no parameters, the method returns an empty Enumeration.Enumeration of String objects, each String
containing the name of a parameter;
or an empty Enumeration if no parameterspublic void setAll(java.util.Map<java.lang.String,java.lang.String> params)
params - the other parameter mapCopyright © 2008–2018 The Aspectran Project. All rights reserved.