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

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

public class ListMultiMap<K,V>
extends java.lang.Object

A container to hold lists indexed by a key.


Constructor Summary
ListMultiMap()
           
 
Method Summary
 boolean containsKey(K k)
           
 java.util.List<V> get(K key)
           
 java.util.Set<java.util.Map.Entry<K,java.util.List<V>>> getEntrySet()
           
 java.util.List<K> getKeys()
           
 int getSize()
           
 java.util.Collection<java.util.List<V>> getValues()
           
 boolean isEmpty()
           
 void put(K key, V method)
           
 java.util.List<V> remove(K key)
           
 java.lang.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 java.util.List<V> get(K key)

getKeys

public java.util.List<K> getKeys()

containsKey

public boolean containsKey(K k)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isEmpty

public boolean isEmpty()

getSize

public int getSize()

remove

public java.util.List<V> remove(K key)

getEntrySet

public java.util.Set<java.util.Map.Entry<K,java.util.List<V>>> getEntrySet()

getValues

public java.util.Collection<java.util.List<V>> getValues()


Copyright © 2011. All Rights Reserved.