public class BidirectionalMultiMap<K,V>
extends java.lang.Object
Constructor and Description |
---|
BidirectionalMultiMap() |
BidirectionalMultiMap(java.util.Map<K,java.util.Set<V>> key2Values,
java.util.Map<V,java.util.Set<K>> value2Keys) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(K key) |
boolean |
containsValue(V value) |
protected java.util.Set<K> |
createKeysSet() |
protected java.util.Set<V> |
createValuesSet() |
java.util.Set<K> |
getKeys() |
java.util.Set<K> |
getKeys(V value) |
java.util.Set<V> |
getValues() |
java.util.Set<V> |
getValues(K key) |
boolean |
isEmpty() |
boolean |
put(K key,
V value) |
void |
remove(K key,
V value) |
boolean |
removeKey(K key) |
boolean |
removeValue(V value) |
public boolean containsKey(K key)
public boolean containsValue(V value)
protected java.util.Set<V> createValuesSet()
protected java.util.Set<K> createKeysSet()
public boolean removeKey(K key)
public boolean isEmpty()
public boolean removeValue(V value)
public void clear()
public java.util.Set<K> getKeys()
public java.util.Set<V> getValues()