public class ParameterMap extends LinkedHashMap<String,String[]>
Created: 2008. 06. 11 PM 8:55:13
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ParameterMap()
Instantiates a new Parameter map.
|
ParameterMap(int initialCapacity)
Instantiates a new Parameter map.
|
ParameterMap(Map<String,String[]> params)
Instantiates a new Parameter map.
|
Modifier and Type | Method and Description |
---|---|
String |
getParameter(String name)
Returns the string value to which the specified name is mapped,
or
null if this map contains no mapping for the name. |
Enumeration<String> |
getParameterNames()
Returns an
Enumeration of String objects containing
the names of the parameters. |
String[] |
getParameterValues(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(Map<String,String> params)
Set the given parameters under.
|
void |
setParameter(String name,
String value)
Sets the value to the parameter with the given name.
|
void |
setParameterValues(String name,
String[] values)
Sets the values to the parameter with the given name.
|
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public ParameterMap()
public ParameterMap(int initialCapacity)
initialCapacity
- the initial capacitypublic String getParameter(String name)
null
if this map contains no mapping for the name.name
- the parameter nameString
representing the
single value of the parameterpublic String[] getParameterValues(String name)
null
if this map contains no mapping for the name.name
- the parameter nameString
objects
containing the parameter's valuespublic void setParameter(String name, 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(String name, 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 Enumeration<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 parametersCopyright © 2008–2017 Aspectran.com. All rights reserved.