public class ReferenceMap<K,V> extends AbstractMap<K,V> implements Map<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 构造器和说明 |
|---|
ReferenceMap(Map<Reference<K>,ValueReference<Reference<K>,V>> raw,
ReferenceType referenceType) |
ReferenceMap(Supplier<Map<Reference<K>,ValueReference<Reference<K>,V>>> supplier,
ReferenceType referenceType) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
boolean |
containsKey(Object key) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
boolean |
isEmpty() |
V |
merge(K key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction) |
V |
put(K key,
V value) |
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) |
void |
replaceAll(BiFunction<? super K,? super V,? extends V> function) |
int |
size() |
clone, containsValue, equals, hashCode, keySet, putAll, toString, valuescontainsValue, equals, forEach, getOrDefault, hashCode, keySet, putAll, valuespublic ReferenceMap(Map<Reference<K>,ValueReference<Reference<K>,V>> raw, ReferenceType referenceType)
public ReferenceMap(Supplier<Map<Reference<K>,ValueReference<Reference<K>,V>>> supplier, ReferenceType referenceType)
public boolean containsKey(Object key)
containsKey 在接口中 Map<K,V>containsKey 在类中 AbstractMap<K,V>public void replaceAll(BiFunction<? super K,? super V,? extends V> function)
replaceAll 在接口中 Map<K,V>public V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
computeIfAbsent 在接口中 Map<K,V>public V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
computeIfPresent 在接口中 Map<K,V>Copyright © 2025 fossc. All rights reserved.