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.
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.