Package org.testng.collections
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMultiMap(boolean isSorted)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsKey(K k)protected abstract CcreateValue()Set<Map.Entry<K,C>>entrySet()Cget(K key)Set<Map.Entry<K,C>>getEntrySet()Deprecated.List<K>getKeys()Deprecated.intgetSize()Deprecated.Collection<C>getValues()Deprecated.booleanisEmpty()Set<K>keySet()booleanput(K key, V method)booleanputAll(K k, Collection<? extends V> values)Cremove(K key)Deprecated.booleanremove(K key, V value)CremoveAll(K key)intsize()StringtoString()Collection<C>values()
-
-
-
Field Detail
-
m_objects
protected final Map<K,C extends Collection<V>> m_objects
-
-
Method Detail
-
createValue
protected abstract C createValue()
-
getKeys
@Deprecated public List<K> getKeys()
Deprecated.
-
containsKey
public boolean containsKey(K k)
-
isEmpty
public boolean isEmpty()
-
getSize
@Deprecated public int getSize()
Deprecated.
-
size
public int size()
-
remove
@Deprecated public C remove(K key)
Deprecated.
-
getEntrySet
@Deprecated public Set<Map.Entry<K,C>> getEntrySet()
Deprecated.
-
getValues
@Deprecated public Collection<C> getValues()
Deprecated.
-
values
public Collection<C> values()
-
putAll
public boolean putAll(K k, Collection<? extends V> values)
-
-