Class MultiHashMap<K,V>
java.lang.Object
com.aquima.interactions.foundation.collections.MultiHashMap<K,V>
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionCreates a new instance.MultiHashMap
(IMultiMap<K, V> other) Creates a copy of the specified multi-map.MultiHashMap
(Map<K, Collection<V>> map) Creates a new instance backed by the specified map. -
Method Summary
-
Constructor Details
-
MultiHashMap
public MultiHashMap()Creates a new instance. -
MultiHashMap
Creates a new instance backed by the specified map.- Parameters:
map
- the map backing this multi-map
-
MultiHashMap
Creates a copy of the specified multi-map.- Parameters:
other
- the multi-map that should be copied.
-
-
Method Details
-
add
-
addAll
-
remove
-
get
-
containsKey
- Specified by:
containsKey
in interfaceIMultiMap<K,
V>
-
size
public int size() -
clear
public void clear() -
entrySet
-
keySet
-