K - 键类型V - 值类型public class BiMap<K,V> extends MapWrapper<K,V>
DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR| Modifier and Type | Method and Description | 
|---|---|
| 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, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic void clear()
public V putIfAbsent(K key, V value)
putIfAbsent in interface Map<K,V>putIfAbsent in class MapWrapper<K,V>public V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
computeIfAbsent in interface Map<K,V>computeIfAbsent in class MapWrapper<K,V>public V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
computeIfPresent in interface Map<K,V>computeIfPresent in class MapWrapper<K,V>Copyright © 2025. All rights reserved.