asg.cliche.util
Interface MultiMap<K,V>

All Known Implementing Classes:
ArrayHashMultiMap, EmptyMultiMap

public interface MultiMap<K,V>

This is an extension to Java Collections framework. MultiMap is a map which can contain multiple values under the same key.


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

Method Detail

put

void put(K key,
         V value)

putAll

void putAll(MultiMap<K,V> map)

get

java.util.Collection<V> get(K key)

keySet

java.util.Set<K> keySet()

remove

void remove(K key,
            V value)

removeAll

void removeAll(K key)

size

int size()
Returns:
total size of all value collections in the MultiMap.