| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
static <K,V> BiMap<K,V> |
create() |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
BiMap<V,K> |
inverse() |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
int |
size() |
static <K,V> BiMap<K,V> |
unmodifiableBiMap(BiMap<K,V> biMap) |
Set<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static <K,V> BiMap<K,V> create()
public boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>public V put(K key, V value)
put in interface Map<K,V>IllegalArgumentException - if the given value is already bound to a different key in this bimap.public void putAll(Map<? extends K,? extends V> m)
putAll in interface Map<K,V>IllegalArgumentException - if an attempt to put any entry fails.Copyright © 2022. All rights reserved.