org.apache.tinkerpop.gremlin.util.tools

## Class MultiMap

- java.lang.Object
- - org.apache.tinkerpop.gremlin.util.tools.MultiMap

-     public final class MultiMap
      extends Object

  A number of static methods to interact with a multi map, i.e. a map that maps keys to sets of values.
  Author:
    Matthias Broecheler (me@matthiasb.com)

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <K,V> boolean` | `containsEntry(Map<K,Set<V>> map, K key, V value)`
    `static <K,V> Set<V>` | `get(Map<K,Set<V>> map, K key)`
    `static <K,V> boolean` | `put(Map<K,Set<V>> map, K key, V value)`
    `static <K,V> boolean` | `putAll(Map<K,Set<V>> map, K key, Collection<V> values)`

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

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

- - ### Method Detail

    - #### putAll

          public static <K,V> boolean putAll(Map<K,Set<V>> map,
                                             K key,
                                             Collection<V> values)

    - #### put

          public static <K,V> boolean put(Map<K,Set<V>> map,
                                          K key,
                                          V value)

    - #### containsEntry

          public static <K,V> boolean containsEntry(Map<K,Set<V>> map,
                                                    K key,
                                                    V value)

    - #### get

          public static <K,V> Set<V> get(Map<K,Set<V>> map,
                                         K key)

Copyright © 2013–2019 Apache Software Foundation. All rights reserved.