public class ParameterMap extends Object implements MultiValueMap<String,String>
Modifier | Constructor and Description |
---|---|
protected |
ParameterMap()
Creates a new MultiValueMap<String, String> that is initially empty.
|
protected |
ParameterMap(Map<String,List<String>> parameters)
Wraps the provided Map<String, List<String>> as a MultiValueMap<String, String>.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
String value) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,List<String>>> |
entrySet() |
List<String> |
get(Object key) |
String |
getFirst(String key) |
boolean |
isEmpty() |
Set<String> |
keySet() |
List<String> |
put(String key,
List<String> values) |
void |
putAll(Map<? extends String,? extends List<String>> map) |
List<String> |
remove(Object key) |
void |
set(String key,
String value) |
void |
setAll(Map<String,String> values) |
int |
size() |
Map<String,String> |
toSingleValueMap() |
Collection<List<String>> |
values() |
protected ParameterMap()
public boolean containsKey(Object key)
containsKey
in interface Map<String,List<String>>
public boolean containsValue(Object value)
containsValue
in interface Map<String,List<String>>
public Collection<List<String>> values()
public String getFirst(String key)
getFirst
in interface MultiValueMap<String,String>
public void add(String key, String value)
add
in interface MultiValueMap<String,String>
public void set(String key, String value)
set
in interface MultiValueMap<String,String>
public void setAll(Map<String,String> values)
setAll
in interface MultiValueMap<String,String>
public Map<String,String> toSingleValueMap()
toSingleValueMap
in interface MultiValueMap<String,String>