io.vertx.rxjava.core

## Class MultiMap

- java.lang.Object
- - io.vertx.rxjava.core.MultiMap

-     public class MultiMap
      extends Object

  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 `original` non RX-ified interface using Vert.x codegen.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MultiMap(MultiMap delegate)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `MultiMap` | `add(String name, String value)` Adds a new value with the specified name and value.
    `MultiMap` | `addAll(MultiMap map)` Adds all the entries from another MultiMap to this one
    `static MultiMap` | `caseInsensitiveMultiMap()` Create a multi-map implementation with case insensitive keys, for instance it can be used to hold some HTTP headers.
    `MultiMap` | `clear()` Removes all
    `boolean` | `contains(String name)` Checks to see if there is a value with the specified name
    `String` | `get(String name)` Returns the value of with the specified name.
    `List<String>` | `getAll(String name)` Returns the values with the specified name
    `Object` | `getDelegate()`
    `boolean` | `isEmpty()` Return true if empty
    `Set<String>` | `names()` Gets a immutable `Set` of all names
    `static MultiMap` | `newInstance(MultiMap arg)`
    `MultiMap` | `remove(String name)` Removes the value with the given name
    `MultiMap` | `set(String name, String value)` Sets a value under the specified name.
    `MultiMap` | `setAll(MultiMap map)` Cleans this instance.
    `int` | `size()` Return the number of keys.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MultiMap

          public MultiMap(MultiMap delegate)

  - ### Method Detail

    - #### getDelegate

          public Object getDelegate()

    - #### caseInsensitiveMultiMap

          public static MultiMap caseInsensitiveMultiMap()

      Create a multi-map implementation with case insensitive keys, for instance it can be used to hold some HTTP headers.
      Returns:
        the multi-map

    - #### get

          public String get(String 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.
      Parameters:
        `name` - The name of the header to search
      Returns:
        The first header value or `null` if there is no such entry

    - #### getAll

          public List<String> getAll(String name)

      Returns the values with the specified name
      Parameters:
        `name` - The name to search
      Returns:
        A immutable `List` of values which will be empty if no values are found

    - #### contains

          public boolean contains(String name)

      Checks to see if there is a value with the specified name
      Parameters:
        `name` - The name to search for
      Returns:
        true if at least one entry is found

    - #### isEmpty

          public boolean isEmpty()

      Return true if empty
      Returns:

    - #### names

          public Set<String> names()

      Gets a immutable `Set` of all names
      Returns:
        A `Set` of all names

    - #### add

          public MultiMap add(String name,
                              String value)

      Adds a new value with the specified name and value.
      Parameters:
        `name` - The name
        `value` - The value being added
      Returns:
        a reference to this, so the API can be used fluently

    - #### addAll

          public MultiMap addAll(MultiMap map)

      Adds all the entries from another MultiMap to this one
      Parameters:
        `map` -
      Returns:
        a reference to this, so the API can be used fluently

    - #### set

          public MultiMap set(String name,
                              String value)

      Sets a value under the specified name.

      If there is an existing header with the same name, it is removed.

      Parameters:
        `name` - The name
        `value` - The value
      Returns:
        a reference to this, so the API can be used fluently

    - #### setAll

          public MultiMap setAll(MultiMap map)

      Cleans this instance.
      Parameters:
        `map` -
      Returns:
        a reference to this, so the API can be used fluently

    - #### remove

          public MultiMap remove(String name)

      Removes the value with the given name
      Parameters:
        `name` - The name of the value to remove
      Returns:
        a reference to this, so the API can be used fluently

    - #### clear

          public MultiMap clear()

      Removes all
      Returns:
        a reference to this, so the API can be used fluently

    - #### size

          public int size()

      Return the number of keys.
      Returns:

    - #### newInstance

          public static MultiMap newInstance(MultiMap arg)

Copyright © 2015. All rights reserved.