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

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

public interface SetMultiMap<K,V>
extends java.util.Map<K,java.util.Set<V>>

A concurrent multimap, in which the multi-values are stored in a 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.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.