Class MultiMap<K,V,C extends Collection<V>>

java.lang.Object
org.testng.collections.MultiMap<K,V,C>
Direct Known Subclasses:
ListMultiMap, SetMultiMap

public abstract class MultiMap<K,V,C extends Collection<V>> extends Object
  • Field Details

  • Constructor Details

    • MultiMap

      protected MultiMap(boolean isSorted)
  • Method Details

    • createValue

      protected abstract C createValue()
    • put

      public boolean put(K key, V method)
    • get

      public C get(K key)
    • keySet

      public Set<K> keySet()
    • containsKey

      public boolean containsKey(K k)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isEmpty

      public boolean isEmpty()
    • size

      public int size()
    • remove

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

      public C removeAll(K key)
    • entrySet

      public Set<Map.Entry<K,C>> entrySet()
    • values

      public Collection<C> values()
    • putAll

      public boolean putAll(K k, Collection<? extends V> values)