org.knowceans.map
Interface IMultiMap<K,V>

All Superinterfaces:
java.util.Map<K,java.util.Set<V>>
All Known Subinterfaces:
IInvertibleMultiMap<X,Y>
All Known Implementing Classes:
HashMultiMap, IndexRanking, InvertibleHashMultiMap, InvertibleTreeMultiMap, PatternTreeMultiMap, RankingMap, TreeMultiMap

public interface IMultiMap<K,V>
extends java.util.Map<K,java.util.Set<V>>

A Map that maps from K to a set of V.

Author:
heinrich

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Method Summary
 void add(K key, V value)
          Adds a mapping from key to value without removing existing mappings from key.
 void remove(K key, V value)
          Removes a mapping from key to value without removing other mappings from key.
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

add

void add(K key,
         V value)
Adds a mapping from key to value without removing existing mappings from key.

Parameters:
key - The key of the new entry.
value - The value of the new entry.

remove

void remove(K key,
            V value)
Removes a mapping from key to value without removing other mappings from key.

Parameters:
key - The key of the new entry.
value - The value of the new entry.