com.hazelcast.util.collection

## Class InternalListMultiMap<K,V>

- java.lang.Object
- - com.hazelcast.util.collection.InternalListMultiMap<K,V>

- Type Parameters:
    `K` -
    `V` -

      public class InternalListMultiMap<K,V>
      extends Object

  Simplistic implementation of MultiMap. It's not thread-safe, concurrent access has to be externally synchronized. It allows duplicates: The same value can be associated with the same key multiple times The name has a prefix Internal- to avoid confusion with `MultiMap`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `InternalListMultiMap()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Set<Map.Entry<K,List<V>>>` | `entrySet()`
    `Collection<V>` | `get(K key)` Return collection of values associated with a given key
    `void` | `put(K key, V value)` Put value to a given key.

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

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

- - ### Constructor Detail

    - #### InternalListMultiMap

          public InternalListMultiMap()

  - ### Method Detail

    - #### put

          public void put(K key,
                          V value)

      Put value to a given key. It allows duplicates under the same key
      Parameters:
        `key` -
        `value` -

    - #### get

          public Collection<V> get(K key)

      Return collection of values associated with a given key
      Parameters:
        `key` -
      Returns:

    - #### entrySet

          public Set<Map.Entry<K,List<V>>> entrySet()

Copyright © 2019. All rights reserved.