com.hazelcast.util.collection

## Class InternalSetMultimap<K,V>

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

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

      public class InternalSetMultimap<K,V>
      extends Object

  Simplistic implementation of MultiMap. It's not thread-safe, concurrent access has to be externally synchronized. It does not allow duplicates: The same value can be associated with the same key once only. Duplicates are eliminated. The name has a prefix Internal- to avoid confusion with `MultiMap`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `InternalSetMultimap()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Set<Map.Entry<K,Set<V>>>` | `entrySet()`
    `Set<V>` | `get(K key)` Return Set of values associated with a given key
    `void` | `put(K key, V value)` Associate 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

    - #### InternalSetMultimap

          public InternalSetMultimap()

  - ### Method Detail

    - #### put

          public void put(K key,
                          V value)

      Associate value to a given key. It has no effect if the value is already associated with the key.
      Parameters:
        `key` -
        `value` -

    - #### get

          public Set<V> get(K key)

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

    - #### entrySet

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

Copyright © 2020. All rights reserved.