class MultiMap extends AnyRef
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.
- Alphabetic
- By Inheritance
- MultiMap
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new MultiMap(_asJava: AnyRef)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
add(name: String, value: String): MultiMap
Adds a new value with the specified name and value.
Adds a new value with the specified name and value. * @param name The name
- value
The value being added
- returns
a reference to this, so the API can be used fluently
-
def
addAll(map: MultiMap): MultiMap
Adds all the entries from another MultiMap to this one * @return a reference to this, so the API can be used fluently
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asJava: AnyRef
-
def
clear(): MultiMap
Removes all * @return a reference to this, so the API can be used fluently
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
contains(name: String): Boolean
Checks to see if there is a value with the specified name * @param name The name to search for
Checks to see if there is a value with the specified name * @param name The name to search for
- returns
true if at least one entry is found
-
def
contains(name: String, value: String, caseInsensitive: Boolean): Boolean
Check if there is a header with the specified
name
andvalue
.Check if there is a header with the specified
name
andvalue
.If
caseInsensitive
istrue
,value
is compared in a case-insensitive way. * @param name the name to search for- value
the value to search for
- returns
true
if at least one entry is found
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get(name: String): Option[String]
Returns the value of with the specified 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. * @param name The name of the header to search
- returns
The first header value or
null
if there is no such entry
-
def
getAll(name: String): Buffer[String]
Returns the values with the specified name * @param name The name to search
Returns the values with the specified name * @param name The name to search
- returns
A immutable scala.collection.immutable.List of values which will be empty if no values are found
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isEmpty(): Boolean
Return true if empty
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
names(): Set[String]
Gets a immutable Set of all names * @return A scala.collection.immutable.Set of all names
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
remove(name: String): MultiMap
Removes the value with the given name * @param name The name of the value to remove
Removes the value with the given name * @param name The name of the value to remove
- returns
a reference to this, so the API can be used fluently
-
def
set(name: String, value: String): MultiMap
Sets a value under the specified name.
Sets a value under the specified name.
If there is an existing header with the same name, it is removed. * @param name The name
- value
The value
- returns
a reference to this, so the API can be used fluently
-
def
setAll(map: MultiMap): MultiMap
Cleans this instance.
Cleans this instance. * @return a reference to this, so the API can be used fluently
-
def
size(): Int
Return the number of keys.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )