Package org.opennms.core.soa.support
Class MultivaluedMapImpl<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<K,Set<V>>
-
- org.opennms.core.soa.support.MultivaluedMapImpl<K,V>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<K,Set<V>>
,MultivaluedMap<K,V>
public class MultivaluedMapImpl<K,V> extends LinkedHashMap<K,Set<V>> implements MultivaluedMap<K,V>
MultivaluedMapImpl- Author:
- brozow
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultivaluedMapImpl.SynchronizedMultivaluedMap<Key,Value>
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description MultivaluedMapImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(K key, V value)
Set<V>
getCopy(K key)
boolean
remove(Object key, Object value)
static <Key,Value>
MultivaluedMap<Key,Value>synchronizedMultivaluedMap()
static <Key,Value>
MultivaluedMap<Key,Value>synchronizedMultivaluedMap(MultivaluedMap<Key,Value> m)
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, replace, replace, size
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
synchronizedMultivaluedMap
public static <Key,Value> MultivaluedMap<Key,Value> synchronizedMultivaluedMap(MultivaluedMap<Key,Value> m)
-
synchronizedMultivaluedMap
public static <Key,Value> MultivaluedMap<Key,Value> synchronizedMultivaluedMap()
-
-