org.opennms.core.soa.support
Class MultivaluedMapImpl.SynchronizedMultivaluedMap<Key,Value>

java.lang.Object
  extended by org.opennms.core.soa.support.MultivaluedMapImpl.SynchronizedMultivaluedMap<Key,Value>
All Implemented Interfaces:
Map<Key,Set<Value>>, MultivaluedMap<Key,Value>
Enclosing class:
MultivaluedMapImpl<K,V>

public static class MultivaluedMapImpl.SynchronizedMultivaluedMap<Key,Value>
extends Object
implements MultivaluedMap<Key,Value>

SynchronizedMultivaluedMap

Author:
brozow

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
MultivaluedMapImpl.SynchronizedMultivaluedMap(MultivaluedMap<Key,Value> m)
           
 
Method Summary
 void add(Key key, Value value)
          add
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<Key,Set<Value>>> entrySet()
           
 Set<Value> get(Object key)
           
 Set<Value> getCopy(Key key)
          getCopy
 boolean isEmpty()
           
 Set<Key> keySet()
           
 Set<Value> put(Key key, Set<Value> value)
           
 void putAll(Map<? extends Key,? extends Set<Value>> t)
           
 boolean remove(Key key, Value value)
          remove
 Set<Value> remove(Object key)
           
 int size()
           
 Collection<Set<Value>> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

MultivaluedMapImpl.SynchronizedMultivaluedMap

public MultivaluedMapImpl.SynchronizedMultivaluedMap(MultivaluedMap<Key,Value> m)
Method Detail

add

public void add(Key key,
                Value value)
Description copied from interface: MultivaluedMap

add

Specified by:
add in interface MultivaluedMap<Key,Value>
Parameters:
key - a K object.
value - a V object.

remove

public boolean remove(Key key,
                      Value value)
Description copied from interface: MultivaluedMap

remove

Specified by:
remove in interface MultivaluedMap<Key,Value>
Parameters:
key - a K object.
value - a V object.
Returns:
a boolean.

getCopy

public Set<Value> getCopy(Key key)
Description copied from interface: MultivaluedMap

getCopy

Specified by:
getCopy in interface MultivaluedMap<Key,Value>
Parameters:
key - a K object.
Returns:
a Set object.

clear

public void clear()
Specified by:
clear in interface Map<Key,Set<Value>>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<Key,Set<Value>>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<Key,Set<Value>>

entrySet

public Set<Map.Entry<Key,Set<Value>>> entrySet()
Specified by:
entrySet in interface Map<Key,Set<Value>>

get

public Set<Value> get(Object key)
Specified by:
get in interface Map<Key,Set<Value>>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<Key,Set<Value>>

keySet

public Set<Key> keySet()
Specified by:
keySet in interface Map<Key,Set<Value>>

put

public Set<Value> put(Key key,
                      Set<Value> value)
Specified by:
put in interface Map<Key,Set<Value>>

putAll

public void putAll(Map<? extends Key,? extends Set<Value>> t)
Specified by:
putAll in interface Map<Key,Set<Value>>

remove

public Set<Value> remove(Object key)
Specified by:
remove in interface Map<Key,Set<Value>>

size

public int size()
Specified by:
size in interface Map<Key,Set<Value>>

values

public Collection<Set<Value>> values()
Specified by:
values in interface Map<Key,Set<Value>>


Copyright © 2011. All Rights Reserved.