asg.cliche.util
Class EmptyMultiMap<K,V>

java.lang.Object
  extended by asg.cliche.util.EmptyMultiMap<K,V>
All Implemented Interfaces:
MultiMap<K,V>

public class EmptyMultiMap<K,V>
extends java.lang.Object
implements MultiMap<K,V>


Constructor Summary
EmptyMultiMap()
           
 
Method Summary
 java.util.Collection<V> get(K key)
           
 java.util.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()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmptyMultiMap

public EmptyMultiMap()
Method Detail

put

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

get

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

keySet

public java.util.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object