vertx-lang-scala-docs_2.12 3.5.0 API < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package io
  Definition Classes
    root
-  package vertx
  Definition Classes
    io
-  package scala
  Definition Classes
    vertx
-  package core
  Definition Classes
    scala
-  package cli
  Definition Classes
    core
-  package datagram
  Definition Classes
    core
-  package dns
  Definition Classes
    core
-  package eventbus
  Definition Classes
    core
-  package file
  Definition Classes
    core
-  package http
  Definition Classes
    core
-  package metrics
  Definition Classes
    core
-  package net
  Definition Classes
    core
-  package parsetools
  Definition Classes
    core
-  package shareddata
  Definition Classes
    core
-  package streams
  Definition Classes
    core
- CompositeFuture
- Context
- DeploymentOptions
- Future
- MultiMap
- TimeoutStream
- Vertx
- VertxOptions
- WorkerExecutor

c

io.vertx.scala.core

# MultiMap 

###
Companion object MultiMap

#### 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.

Linear Supertypes
AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. MultiMap
2. AnyRef
3. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Instance Constructors

1.  new MultiMap(_asJava: AnyRef)

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
4.  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.

   name

     The name

   value

     The value being added

   returns

     a reference to this, so the API can be used fluently

5.  def addAll(map: MultiMap): MultiMap

   Adds all the entries from another MultiMap to this one

   Adds all the entries from another MultiMap to this one

   returns

     a reference to this, so the API can be used fluently

6.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
7.  def asJava: AnyRef
8.  def clear(): MultiMap

   Removes all

   Removes all

   returns

     a reference to this, so the API can be used fluently

9.  def clone(): AnyRef
   Attributes
     protected[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @throws( ... )
10.  def contains(name: String): Boolean

    Checks to see if there is a value with the specified name

    Checks to see if there is a value with the specified name

    name

      The name to search for

    returns

      true if at least one entry is found

11.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
12.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
13.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
14.  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.

    name

      The name of the header to search

    returns

      The first header value or `null` if there is no such entry

15.  def getAll(name: String): Buffer[String]

    Returns the values with the specified name

    Returns the values with the specified name

    name

      The name to search

    returns

      A immutable scala.collection.immutable.List of values which will be empty if no values are found

16.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
17.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
18.  def isEmpty(): Boolean

    Return true if empty

19.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
20.  def names(): Set[String]

    Gets a immutable Set of all names

    Gets a immutable Set of all names

    returns

      A scala.collection.immutable.Set of all names

21.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
22.  final def notify(): Unit
    Definition Classes
      AnyRef
23.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
24.  def remove(name: String): MultiMap

    Removes the value with the given name

    Removes the value with the given name

    name

      The name of the value to remove

    returns

      a reference to this, so the API can be used fluently

25.  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.

    name

      The name

    value

      The value

    returns

      a reference to this, so the API can be used fluently

26.  def setAll(map: MultiMap): MultiMap

    Cleans this instance.

    Cleans this instance.

    returns

      a reference to this, so the API can be used fluently

27.  def size(): Int

    Return the number of keys.

28.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
29.  def toString(): String
    Definition Classes
      AnyRef → Any
30.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
31.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
32.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )

### Inherited from AnyRef

### Inherited from Any

### Ungrouped