Package randoop.util
Class IdentityMultiMap<K,V>
- java.lang.Object
-
- randoop.util.IdentityMultiMap<K,V>
-
public class IdentityMultiMap<K,V> extends Object
A multi-map using key identity rather than equality.
-
-
Field Summary
Fields Modifier and Type Field Description private IdentityHashMap<K,Set<V>>
map
The underlying map.
-
Constructor Summary
Constructors Constructor Description IdentityMultiMap()
Creates an empty multi-map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<V>
get(K key)
Returns the set of values that correspond to the given key in the map.void
put(K key, V value)
Adds a key-value pair to the multimap.
-