org.apache.qpid.server.cluster.util
Class MultiValuedMap<K,V>

java.lang.Object
  extended by 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


Constructor Summary
MultiValuedMap()
           
 
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
 

Constructor Detail

MultiValuedMap

public MultiValuedMap()
Method Detail

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()