open class MultiMap
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.
NOTE: This class has been automatically generated from the io.vertx.core.MultiMap non RX-ified interface using Vert.x codegen.
MultiMap(delegate: MultiMap) |
static val __TYPE_ARG: TypeArg<MultiMap> |
open fun add(name: String, value: String): MultiMap
Adds a new value with the specified name and value. |
|
open fun addAll(map: MultiMap): MultiMap
Adds all the entries from another MultiMap to this one |
|
open static fun caseInsensitiveMultiMap(): MultiMap
Create a multi-map implementation with case insensitive keys, for instance it can be used to hold some HTTP headers. |
|
open fun clear(): MultiMap
Removes all |
|
open fun contains(name: String): Boolean
Checks to see if there is a value with the specified name open fun contains(name: String, value: String, caseInsensitive: Boolean): Boolean
Check if there is a header with the specified |
|
open fun equals(other: Any?): Boolean |
|
open fun get(name: String): String
Returns the value of with the specified name. If there are more than one values for the specified name, the first value is returned. |
|
open fun getAll(name: String): MutableList<String>
Returns the values with the specified name |
|
open fun getDelegate(): MultiMap |
|
open fun hashCode(): Int |
|
open fun isEmpty(): Boolean
Return true if empty |
|
open fun names(): MutableSet<String>
Gets a immutable java.util.Set of all names |
|
open static fun newInstance(arg: MultiMap): MultiMap |
|
open fun remove(name: String): MultiMap
Removes the value with the given name |
|
open fun set(name: String, value: String): MultiMap
Sets a value under the specified name. If there is an existing header with the same name, it is removed. |
|
open fun setAll(map: MultiMap): MultiMap
Cleans this instance. |
|
open fun size(): Int
Return the number of keys. |
|
open fun toString(): String |