K - V - public class ThreadSafeMultiMap<K,V>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ThreadSafeMultiMap.UnitTest |
| Constructor and Description |
|---|
ThreadSafeMultiMap()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
V |
getValue(K key,
V value)
Return value V that matches key K
|
java.util.List<V> |
getValues(K key)
Return the list of values that map to the key K
|
java.util.Set<K> |
keySet()
Returns all keys associated with the map
|
V |
putIfAbsent(K key,
V value)
Put the specified key value, only if both K,V do not previously exist
|
V |
remove(K key,
V value)
Best effort attempt to remove the K,V from the map of maps
|
public V putIfAbsent(K key, V value)
key - value - public V remove(K key, V value)
key - value - public java.util.Set<K> keySet()
public java.util.List<V> getValues(K key)
key -