This class represents a MultiMap of String keys to a List of String values.
It's useful in Vert.x to represent things in Vert.x like HTTP headers and HTTP parameters which allow multiple values for keys.
AnythingObjectMultiMapBasicIdentifiableObjectAnythingno subtypes hierarchy
| Initializer |
MultiMap(MultiMap unknown) |
| Inherited Attributes |
Attributes inherited from: Objecthash, string |
| Methods | |
add | shared default MultiMap add(String name, String value)Adds a new value with the specified name and value. Parameters:
|
addAll | shared default MultiMap addAll(MultiMap map)Adds all the entries from another MultiMap to this one |
clear | shared default MultiMap clear()Removes all |
contains | shared default Boolean contains(String name)Checks to see if there is a value with the specified name Parameters:
|
get | shared default String? get(String name)Returns the value of with the specified name. If there are more than one values for the specified name, the first value is returned. Parameters:
|
getAll | shared default List<String> getAll(String name)Returns the values with the specified name Parameters:
|
isEmpty | shared default Boolean isEmpty()Return true if empty |
names | shared default Set<String> names()Gets a immutable |
remove | shared default MultiMap remove(String name)Removes the value with the given name Parameters:
|
set | shared default MultiMap set(String name, String value)Sets a value under the specified name. If there is an existing header with the same name, it is removed. Parameters:
|
setAll | shared default MultiMap setAll(MultiMap map)Cleans this instance. |
size | shared default Integer size()Return the number of keys. |
| Inherited Methods |
Methods inherited from: Objectequals |