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

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

public interface ConcurrentSetMultiMap<K,V>
extends java.util.concurrent.ConcurrentMap<K,java.util.Set<V>>

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

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.Set<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.
 
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. The collection is automatically created. If the value already exists, it isn't added

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

deepPutAll

void deepPutAll(java.util.Map<? extends K,? extends java.util.Set<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.