K - 键类型V - 值类型public class BiMap<K,V> extends MapWrapper<K,V>
DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR| 限定符和类型 | 方法和说明 |
|---|---|
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) |
Map<V,K> |
getInverse()
获取反向Map
|
K |
getKey(V value)
根据值获得键
|
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) |
boolean |
remove(Object key,
Object value) |
clone, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, getRaw, hashCode, isEmpty, iterator, keySet, replace, replace, replaceAll, size, toString, valuesforEach, spliteratorpublic V putIfAbsent(K key, V value)
putIfAbsent 在接口中 Map<K,V>putIfAbsent 在类中 MapWrapper<K,V>public V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
computeIfAbsent 在接口中 Map<K,V>computeIfAbsent 在类中 MapWrapper<K,V>public V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
computeIfPresent 在接口中 Map<K,V>computeIfPresent 在类中 MapWrapper<K,V>Copyright © 2023. All rights reserved.