public interface ConcurrentHashMapStrategy<K,V> extends IsConcurrentMapStrategy<K,V>
Strategy for a concurrent hash map.
| Modifier and Type | Method and Description |
|---|---|
static <K,V> ConcurrentHashMapStrategy<K,V> |
create()
Creates a new concurrent hash map strategy.
|
default ConcurrentHashMap<K,V> |
get()
Returns a new map for the used strategy.
|
default ConcurrentHashMap<K,V> |
get(Map<K,V> map)
Returns a new map for the used strategy initialized with the elements of another map.
|
isAbstractMap, isConcurrentMap, isHashtable, isNavigableMap, isSortedMapdefault ConcurrentHashMap<K,V> get()
IsMapStrategyReturns a new map for the used strategy.
get in interface IsConcurrentMapStrategy<K,V>get in interface IsMapStrategy<K,V>default ConcurrentHashMap<K,V> get(Map<K,V> map)
IsMapStrategyReturns a new map for the used strategy initialized with the elements of another map.
get in interface IsConcurrentMapStrategy<K,V>get in interface IsMapStrategy<K,V>map - input mapstatic <K,V> ConcurrentHashMapStrategy<K,V> create()
Creates a new concurrent hash map strategy.
K - type of the keys in the mapV - type of the values in the mapCopyright © 2016–2017. All rights reserved.