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
 booleancontainsKey(K k)
           
static
<K,V> ListMultiMap<K,V>
create()
           
 List<V>get(K key)
           
 Set<Map.Entry<K,List<V>>>getEntrySet()
           
 List<K>getKeys()
           
 intgetSize()
           
 Collection<List<V>>getValues()
           
 booleanisEmpty()
           
 voidput(K key, V method)
           
 voidputAll(K k, Collection<V> values)
           
 List<V>remove(K key)
           
 StringtoString()
           
 
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)

create

public static <K,V> ListMultiMap<K,V> create()


Copyright © 2012. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14