org.qi4j.api.util
Class ListMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,List<V>>
          extended by org.qi4j.api.util.ListMap<K,V>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,List<V>>

public final class ListMap<K,V>
extends HashMap<K,List<V>>

Map whose values are Lists of things. Create one ArrayList for each key that is added. The list does not allow duplicates.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
ListMap()
           
 
Method Summary
 void add(K key, V value)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ListMap

public ListMap()
Method Detail

add

public void add(K key,
                V value)