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

All Superinterfaces:
java.util.concurrent.ConcurrentMap<K,ConcurrentList<V>>, java.util.Map<K,ConcurrentList<V>>
All Known Implementing Classes:
ConcurrentListHashMultiMap

public interface ConcurrentListMultiMap<K,V>
extends java.util.concurrent.ConcurrentMap<K,ConcurrentList<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 ConcurrentList<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.concurrent.ConcurrentMap
putIfAbsent, remove, replace, replace
 
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 ConcurrentList<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.