Package org.jppf.utils.collections
Class AbstractCollectionConcurrentMap<K,V>
java.lang.Object
org.jppf.utils.collections.AbstractCollectionMap<K,V>
org.jppf.utils.collections.AbstractCollectionConcurrentMap<K,V>
- Type Parameters:
K- the type of the keys.V- the type of the objects in the map's collection values.
- All Implemented Interfaces:
Serializable,Iterable<V>,CollectionMap<K,V>
- Direct Known Subclasses:
CopyOnWriteListConcurrentMap,SynchronizedLinkedListConcurrentMap
A
ConcurrentHashMap whose values are Collection instances (specialized in concrete subclasses).- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from class org.jppf.utils.collections.AbstractCollectionMap
map -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jppf.utils.collections.AbstractCollectionMap
addValues, allValues, clear, containsKey, containsValue, containsValue, createOrGetCollection, createOrGetCollectionSynchronized, entrySet, getValues, isEmpty, iterator, iterator, keySet, newCollection, removeKey, removeValue, removeValues, size, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jppf.utils.collections.CollectionMap
forEachMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AbstractCollectionConcurrentMap
public AbstractCollectionConcurrentMap()Default constructor.
-
-
Method Details
-
createMap
Description copied from class:AbstractCollectionMapCreate a new map.- Specified by:
createMapin classAbstractCollectionMap<K,V> - Returns:
- a new mutable empty map.
-
putValue
Description copied from interface:CollectionMapAdd a value for the specified key.- Specified by:
putValuein interfaceCollectionMap<K,V> - Overrides:
putValuein classAbstractCollectionMap<K,V> - Parameters:
key- the key for which to add a value.value- the value to add.
-
addValues
Description copied from interface:CollectionMapAdd the specified values to the specified key. This is a bulk operation.- Specified by:
addValuesin interfaceCollectionMap<K,V> - Overrides:
addValuesin classAbstractCollectionMap<K,V> - Parameters:
key- the key to which to add the values.values- the values to add to the key.
-