org.testng.collections
Class ListMultiMap<K,V>
java.lang.Object
org.testng.collections.ListMultiMap<K,V>
public class ListMultiMap<K,V>
- extends Object
A container to hold lists indexed by a key.
ListMultiMap
public ListMultiMap()
put
public void put(K key,
V method)
get
public List<V> get(K key)
getKeys
public List<K> getKeys()
containsKey
public boolean containsKey(K k)
toString
public String toString()
- Overrides:
toString
in class Object
isEmpty
public boolean isEmpty()
getSize
public int getSize()
remove
public List<V> remove(K key)
getEntrySet
public Set<Map.Entry<K,List<V>>> getEntrySet()
getValues
public Collection<List<V>> getValues()
putAll
public void putAll(K k,
Collection<V> values)
create
public static <K,V> ListMultiMap<K,V> create()
Copyright © 2015. All Rights Reserved.