org.testng.collections
Class ListMultiMap<K,V>

java.lang.Object
  extended by org.testng.collections.ListMultiMap<K,V>

public class ListMultiMap<K,V>
extends Object

A container to hold lists indexed by a key.


Constructor Summary
ListMultiMap()
           
 
Method Summary
 boolean containsKey(K k)
           
 List<V> get(K key)
           
 Set<Map.Entry<K,List<V>>> getEntrySet()
           
 List<K> getKeys()
           
 int getSize()
           
 Collection<List<V>> getValues()
           
 boolean isEmpty()
           
 void put(K key, V method)
           
 void putAll(K k, Collection<V> values)
           
 List<V> remove(K key)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListMultiMap

public ListMultiMap()
Method Detail

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)


Copyright © 2012. All Rights Reserved.