asg.cliche.util
Class EmptyMultiMap<K,V>
java.lang.Object
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>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EmptyMultiMap
public EmptyMultiMap()
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