Class AbstractMultiMap<K,V>

java.lang.Object
pascal.taie.util.collection.AbstractMultiMap<K,V>
All Implemented Interfaces:
MultiMap<K,V>
Direct Known Subclasses:
MapSetMultiMap

public abstract class AbstractMultiMap<K,V> extends Object implements MultiMap<K,V>
  • Field Details

  • Constructor Details

    • AbstractMultiMap

      public AbstractMultiMap()
  • Method Details

    • containsValue

      public boolean containsValue(V value)
      Specified by:
      containsValue in interface MultiMap<K,V>
      Returns:
      true if this multimap contains at least one key-value pair with the value value. Note that this operation may be slow compared to MultiMap.containsKey(Object) in some implementations.
    • entrySet

      public Set<Map.Entry<K,V>> entrySet()
      Specified by:
      entrySet in interface MultiMap<K,V>
      Returns:
      an unmodifiable view of all key-value pairs contained in this multimap, as Map.Entry instances.
    • entryIterator

      protected abstract Iterator<Map.Entry<K,V>> entryIterator()
    • values

      public Collection<V> values()
      Specified by:
      values in interface MultiMap<K,V>
      Returns:
      an unmodifiable view collection containing the value from each key-value pair contained in this multimap, without collapsing duplicates (so values().size() == size()).
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface MultiMap<K,V>
      Returns:
      true if this multimap is empty.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object