Package randoop.util

Class IdentityMultiMap<K,​V>


  • public class IdentityMultiMap<K,​V>
    extends Object
    A multi-map using key identity rather than equality.
    • Constructor Detail

      • IdentityMultiMap

        public IdentityMultiMap()
        Creates an empty multi-map.
    • Method Detail

      • put

        public void put​(K key,
                        V value)
        Adds a key-value pair to the multimap.
        Parameters:
        key - the key
        value - the value
      • get

        public Set<V> get​(K key)
        Returns the set of values that correspond to the given key in the map.
        Parameters:
        key - the key value
        Returns:
        the set of values that correspond to the key, null if none