Package proguard.util

Class MultiValueMap<K,V>

java.lang.Object
proguard.util.MultiValueMap<K,V>
Type Parameters:
K - the key type
V - the value type

public class MultiValueMap<K,V> extends Object
A key-values map that can have multiple values associated with each key.

There is an efficient lookup method to retrieve all values of all keys.

  • Constructor Details

    • MultiValueMap

      public MultiValueMap()
  • Method Details

    • createValueSet

      protected Set<V> createValueSet()
    • createKeyMap

      protected Map<K,Set<V>> createKeyMap()
    • size

      public int size()
    • keySet

      public Set<K> keySet()
    • values

      public Collection<Set<V>> values()
    • entrySet

      public Set<Map.Entry<K,Set<V>>> entrySet()
    • put

      public void put(K key, V value)
    • putAll

      public void putAll(Set<K> key, V value)
    • putAll

      public void putAll(Set<K> keys, Set<V> values)
    • putAll

      public void putAll(K key, Set<V> values)
    • remove

      public boolean remove(K key, V value)
    • get

      public Set<V> get(K key)
    • getValues

      public Set<V> getValues()
      Returns a Set with all values of all keys.
      Returns:
      a Set with all values of all keys.
    • clear

      public void clear()