org.lsst.ccs.shell.util
Class ArrayHashMultiMap<K,V>

java.lang.Object
  extended by org.lsst.ccs.shell.util.ArrayHashMultiMap<K,V>
All Implemented Interfaces:
MultiMap<K,V>

public final class ArrayHashMultiMap<K,V>
extends Object
implements MultiMap<K,V>

Author:
ASG

Constructor Summary
ArrayHashMultiMap()
           
ArrayHashMultiMap(MultiMap<K,V> map)
           
 
Method Summary
 Collection<V> get(K key)
           
 Set<K> keySet()
           
 void put(K key, V value)
           
 void putAll(MultiMap<K,V> map)
           
 void remove(K key, V value)
           
 void removeAll(K key)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayHashMultiMap

public ArrayHashMultiMap()

ArrayHashMultiMap

public ArrayHashMultiMap(MultiMap<K,V> map)
Method Detail

put

public void put(K key,
                V value)
Specified by:
put in interface MultiMap<K,V>

get

public Collection<V> get(K key)
Specified by:
get in interface MultiMap<K,V>

keySet

public Set<K> keySet()
Specified by:
keySet in interface MultiMap<K,V>

remove

public void remove(K key,
                   V value)
Specified by:
remove in interface MultiMap<K,V>

removeAll

public void removeAll(K key)
Specified by:
removeAll in interface MultiMap<K,V>

size

public int size()
Specified by:
size in interface MultiMap<K,V>
Returns:
total size of all value collections in the MultiMap.

putAll

public void putAll(MultiMap<K,V> map)
Specified by:
putAll in interface MultiMap<K,V>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 LSST. All Rights Reserved.