org.apache.qpid.server.cluster.util
Class MultiValuedMap<K,V>
java.lang.Object
org.apache.qpid.server.cluster.util.MultiValuedMap<K,V>
public class MultiValuedMap<K,V>
- extends java.lang.Object
Maps a key to a collection of values
Method Summary |
boolean |
add(K key,
V value)
|
protected java.util.Collection<V> |
createList()
|
java.util.Collection<V> |
get(K key)
|
java.util.Collection<V> |
remove(K key)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiValuedMap
public MultiValuedMap()
add
public boolean add(K key,
V value)
get
public java.util.Collection<V> get(K key)
remove
public java.util.Collection<V> remove(K key)
createList
protected java.util.Collection<V> createList()