public class SyncWriteMap<K,V> extends HashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 构造器和说明 |
|---|
SyncWriteMap() |
SyncWriteMap(int initialCapacity) |
SyncWriteMap(int initialCapacity,
float loadFactor) |
SyncWriteMap(Map<? extends K,? extends V> m) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
V |
compute(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction) |
V |
computeIfAbsent(K key,
Function<? super K,? extends V> mappingFunction) |
V |
computeIfPresent(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction) |
V |
merge(K key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
putIfAbsent(K key,
V value) |
V |
remove(Object key) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
void |
replaceAll(BiFunction<? super K,? super V,? extends V> function) |
clone, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, remove, size, valuesequals, hashCode, toStringpublic SyncWriteMap()
public SyncWriteMap(int initialCapacity)
public SyncWriteMap(int initialCapacity,
float loadFactor)
public V putIfAbsent(K key, V value)
putIfAbsent 在接口中 Map<K,V>putIfAbsent 在类中 HashMap<K,V>public V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
computeIfAbsent 在接口中 Map<K,V>computeIfAbsent 在类中 HashMap<K,V>public V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
computeIfPresent 在接口中 Map<K,V>computeIfPresent 在类中 HashMap<K,V>public void replaceAll(BiFunction<? super K,? super V,? extends V> function)
replaceAll 在接口中 Map<K,V>replaceAll 在类中 HashMap<K,V>Copyright © 2024. All rights reserved.