Package io.vertx.mutiny.core
Class MultiMap
java.lang.Object
io.vertx.mutiny.core.MultiMap
- All Implemented Interfaces:
MutinyDelegate,Iterable<Map.Entry<String,String>>
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 theoriginal non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(CharSequence name, CharSequence value) add(CharSequence name, Iterable<CharSequence> values) static MultiMapclear()booleancontains(CharSequence name) booleancontains(CharSequence name, CharSequence value, boolean caseInsensitive) booleanbooleanentries()booleanvoidforEach(BiConsumer<String, String> action) get(CharSequence name) getAll(CharSequence name) io.vertx.core.MultiMapinthashCode()booleanisEmpty()iterator()names()static MultiMapnewInstance(io.vertx.core.MultiMap arg) remove(CharSequence name) set(CharSequence name, CharSequence value) set(CharSequence name, Iterable<CharSequence> values) intsize()toMulti()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
MultiMap
public MultiMap(io.vertx.core.MultiMap delegate) -
MultiMap
-
-
Method Details
-
getDelegate
public io.vertx.core.MultiMap getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
iterator
-
toMulti
-
caseInsensitiveMultiMap
- Returns:
- the multi-map
-
get
- Parameters:
name- The name of the header to search- Returns:
- The first header value or
nullif there is no such entry
-
getAll
- Parameters:
name- The name to search- Returns:
- A immutable
Listof values which will be empty if no values are found
-
contains
- Parameters:
name- The name to search for- Returns:
- true if at least one entry is found
-
contains
- Parameters:
name- the name to search forvalue- the value to search forcaseInsensitive-- Returns:
trueif at least one entry is found
-
isEmpty
public boolean isEmpty()- Returns:
-
names
- Returns:
- A
Setof all names
-
add
- Parameters:
name- The namevalue- The value being added- Returns:
- a reference to this, so the API can be used fluently
-
addAll
- Parameters:
map-- Returns:
- a reference to this, so the API can be used fluently
-
set
- Parameters:
name- The namevalue- The value- Returns:
- a reference to this, so the API can be used fluently
-
setAll
- Parameters:
map-- Returns:
- a reference to this, so the API can be used fluently
-
remove
- Parameters:
name- The name of the value to remove- Returns:
- a reference to this, so the API can be used fluently
-
clear
- Returns:
- a reference to this, so the API can be used fluently
-
size
public int size()- Returns:
-
get
-
getAll
- Parameters:
name-- Returns:
-
forEach
- Parameters:
action-
-
entries
- Returns:
- A immutable
Listof the name-value entries, which will be empty if no pairs are found
-
contains
- Parameters:
name-- Returns:
-
contains
- Parameters:
name-value-caseInsensitive-- Returns:
-
add
- Parameters:
name-value-- Returns:
- the instance of MultiMap to chain method calls.
-
add
- Parameters:
name- The name being setvalues- The values- Returns:
- a reference to this, so the API can be used fluently
-
add
- Parameters:
name-values-- Returns:
- the instance of MultiMap to chain method calls.
-
addAll
- Parameters:
headers-- Returns:
- a reference to this, so the API can be used fluently
-
set
- Parameters:
name-value-- Returns:
- the instance of MultiMap to chain method calls.
-
set
- Parameters:
name- The name of the headers being setvalues- The values of the headers being set- Returns:
- a reference to this, so the API can be used fluently
-
set
- Parameters:
name-values-- Returns:
- the instance of MultiMap to chain method calls.
-
setAll
- Parameters:
headers-- Returns:
- a reference to this, so the API can be used fluently
-
remove
- Parameters:
name-- Returns:
- the instance of MultiMap to chain method calls.
-
newInstance
-