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.
package |
Default |
---|
__construct()
add( $arg0, $arg1) : $this
string
string
$this
a reference to this, so the API can be used fluently
addAll( $arg0) : $this
MultiMap
$this
a reference to this, so the API can be used fluently
caseInsensitiveMultiMap() : \io\vertx\jphp\core\MultiMap
clear() : $this
$this
a reference to this, so the API can be used fluently
contains( $arg0, $arg1 = null, $arg2 = null) : boolean
param $name [string] The name to search for contains($name)
Check if there is a header with the specified name
and value
.
If caseInsensitive
is true
, value
is compared in a case-insensitive way.
param $name [string] the name to search for param $value [string] the value to search for param $caseInsensitive [boolean] contains($name, $value, $caseInsensitive)
string
string
boolean
boolean
true if at least one entry is found
get( $arg0) : string
string
string
The first header value or {@code null} if there is no such entry
getAll( $arg0) : array
string
array
A immutable {@link java.util.List} of values which will be empty if no values are found
isEmpty() : boolean
boolean
names() : array
array
A {@link java.util.Set} of all names
remove( $arg0) : $this
string
$this
a reference to this, so the API can be used fluently
set( $arg0, $arg1) : $this
If there is an existing header with the same name, it is removed.
string
string
$this
a reference to this, so the API can be used fluently
setAll( $arg0) : $this
MultiMap
$this
a reference to this, so the API can be used fluently
size() : integer
integer