Class LinkedHashSetValuedLinkedHashMap<K,V>

Type Parameters:
K - the type of the keys in this map
V - the type of the values in this map
All Implemented Interfaces:
Serializable, MultiValuedMap<K,V>, SetValuedMap<K,V>

public class LinkedHashSetValuedLinkedHashMap<K,V> extends AbstractSetValuedMap<K,V> implements Serializable
Implements a SetValuedMap, using a LinkedHashMap to provide data storage and LinkedHashSets as value collections. This is the standard implementation of a SetValuedMap.

Note that LinkedHashSetValuedLinkedHashMap is not synchronized and is not thread-safe. If you wish to use this map from multiple threads concurrently, you must use appropriate synchronization. This class may throw exceptions when accessed by concurrent threads without synchronization.

Since:
4.5.0-M3
See Also:
  • Constructor Details

    • LinkedHashSetValuedLinkedHashMap

      Creates an empty LinkedHashSetValuedHashMap with the default initial map capacity (16) and the default initial set capacity (3).
    • LinkedHashSetValuedLinkedHashMap

      public LinkedHashSetValuedLinkedHashMap(int initialSetCapacity)
      Creates an empty LinkedHashSetValuedHashMap with the default initial map capacity (16) and the specified initial set capacity.
      Parameters:
      initialSetCapacity - the initial capacity used for value collections
    • LinkedHashSetValuedLinkedHashMap

      public LinkedHashSetValuedLinkedHashMap(int initialMapCapacity, int initialSetCapacity)
      Creates an empty LinkedHashSetValuedHashMap with the specified initial map and list capacities.
      Parameters:
      initialMapCapacity - the initial hashmap capacity
      initialSetCapacity - the initial capacity used for value collections
    • LinkedHashSetValuedLinkedHashMap

      public LinkedHashSetValuedLinkedHashMap(Map<? extends K,? extends V> map)
      Creates an LinkedHashSetValuedHashMap copying all the mappings of the given map.
      Parameters:
      map - a Map to copy into this map
    • LinkedHashSetValuedLinkedHashMap

      public LinkedHashSetValuedLinkedHashMap(MultiValuedMap<? extends K,? extends V> map)
      Creates an LinkedHashSetValuedHashMap copying all the mappings of the given map.
      Parameters:
      map - a MultiValuedMap to copy into this map
  • Method Details