org.jboss.webbeans.util.collections.multi
Interface ListMultiMap<K,V>

All Superinterfaces:
java.util.Map<K,java.util.List<V>>
All Known Implementing Classes:
ListHashMultiMap

public interface ListMultiMap<K,V>
extends java.util.Map<K,java.util.List<V>>

A concurrent multimap, in which the multi-values are stored in a list

Author:
Pete Muir

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Method Summary
 void deepPutAll(java.util.Map<? extends K,? extends java.util.List<V>> map)
          Put all the data in the map into this map, copying each multi-value, not just attaching the existing multi-value
 void put(K key, V value)
          Add a value, creating the list if it doesn't exist
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

put

void put(K key,
         V value)
Add a value, creating the list if it doesn't exist

Parameters:
key - the key to store the value under
value - the value to add

deepPutAll

void deepPutAll(java.util.Map<? extends K,? extends java.util.List<V>> map)
Put all the data in the map into this map, copying each multi-value, not just attaching the existing multi-value

Parameters:
map - the map to copy


Copyright © 2011. All Rights Reserved.