Class MultiHashMap<K,V>

java.lang.Object
com.aquima.interactions.foundation.collections.MultiHashMap<K,V>
All Implemented Interfaces:
IMultiMap<K,V>

public class MultiHashMap<K,V> extends Object implements IMultiMap<K,V>
A multi-map backed by a HashMap. This implementation has the following characteristics:
  • does not allow null keys
  • does not allow null values
  • is not thread safe
Since:
9.9
Author:
Petru Galanton
  • Constructor Details

    • MultiHashMap

      public MultiHashMap()
      Creates a new instance.
    • MultiHashMap

      public MultiHashMap(Map<K,Collection<V>> map)
      Creates a new instance backed by the specified map.
      Parameters:
      map - the map backing this multi-map
    • MultiHashMap

      public MultiHashMap(IMultiMap<K,V> other)
      Creates a copy of the specified multi-map.
      Parameters:
      other - the multi-map that should be copied.
  • Method Details