Package org.jppf.utils.collections
Class CopyOnWriteListConcurrentMap<K,V>
java.lang.Object
org.jppf.utils.collections.AbstractCollectionMap<K,V>
org.jppf.utils.collections.AbstractCollectionConcurrentMap<K,V>
org.jppf.utils.collections.CopyOnWriteListConcurrentMap<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>
A
ConcurrentHashMap whose values are CopyOnWriteArrayList instances.- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from class org.jppf.utils.collections.AbstractCollectionMap
map -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<K,Collection<V>> Create a new map.protected Collection<V>Create a new collection of values for insertion into the map.Methods inherited from class org.jppf.utils.collections.AbstractCollectionConcurrentMap
addValues, putValueMethods inherited from class org.jppf.utils.collections.AbstractCollectionMap
addValues, allValues, clear, containsKey, containsValue, containsValue, createOrGetCollection, createOrGetCollectionSynchronized, entrySet, getValues, isEmpty, iterator, iterator, keySet, 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
-
CopyOnWriteListConcurrentMap
public CopyOnWriteListConcurrentMap()Default constructor.
-
-
Method Details
-
createMap
Description copied from class:AbstractCollectionMapCreate a new map.- Overrides:
createMapin classAbstractCollectionConcurrentMap<K,V> - Returns:
- a new mutable empty map.
-
newCollection
Description copied from class:AbstractCollectionMapCreate a new collection of values for insertion into the map.- Specified by:
newCollectionin classAbstractCollectionMap<K,V> - Returns:
- a new mutable empty collection.
-