K - keyV - valuepublic class ConcurrentWeakHashMap<K,V> extends AbstractMap<K,V> implements ConcurrentMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ConcurrentWeakHashMap() |
ConcurrentWeakHashMap(int initialCapacity) |
ConcurrentWeakHashMap(int initialCapacity,
float loadFactor) |
ConcurrentWeakHashMap(int initialCapacity,
float loadFactor,
int concurrencyLevel) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
boolean |
isEmpty() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> map) |
V |
putIfAbsent(K key,
V value) |
V |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
int |
size() |
Collection<V> |
values() |
public ConcurrentWeakHashMap(int initialCapacity,
float loadFactor,
int concurrencyLevel)
public ConcurrentWeakHashMap(int initialCapacity,
float loadFactor)
public ConcurrentWeakHashMap(int initialCapacity)
public ConcurrentWeakHashMap()
public int size()
public void clear()
public Collection<V> values()
public boolean isEmpty()
public boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in class AbstractMap<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>containsValue in class AbstractMap<K,V>public V putIfAbsent(K key, V value)
putIfAbsent in interface ConcurrentMap<K,V>public boolean remove(Object key, Object value)
remove in interface ConcurrentMap<K,V>public boolean replace(K key, V oldValue, V newValue)
replace in interface ConcurrentMap<K,V>Copyright © 2016. All Rights Reserved.