public class ReversibleMapImpl<K,V> extends AbstractMap<K,V> implements ReversibleMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.SetMultimap<V,K> |
backward |
protected Map<K,V> |
forward |
protected ReversibleSetMultimap<V,K> |
reverse |
| Constructor and Description |
|---|
ReversibleMapImpl() |
ReversibleMapImpl(Map<K,V> forward,
com.google.common.collect.SetMultimap<V,K> backward) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
V |
put(K key,
V value) |
V |
remove(Object key) |
ReversibleSetMultimap<V,K> |
reverse() |
clone, equals, hashCode, isEmpty, keySet, putAll, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, valuesprotected ReversibleSetMultimap<V,K> reverse
public void clear()
public boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in class AbstractMap<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>containsValue in class AbstractMap<K,V>public ReversibleSetMultimap<V,K> reverse()
reverse in interface ReversibleMap<K,V>Copyright © 2018. All rights reserved.