org.qi4j.api.util
Class ListMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,List<V>>
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
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 |
ListMap
public ListMap()
add
public void add(K key,
V value)