org.knowceans.map
Interface IInvertibleMap<X,Y>

All Superinterfaces:
java.util.Map<X,Y>
All Known Subinterfaces:
IInvertibleMultiMap<X,Y>
All Known Implementing Classes:
InvertibleHashMultiMap

public interface IInvertibleMap<X,Y>
extends java.util.Map<X,Y>

A map that can be inverted in that keys then are values and vice versa. Of course, the constraint that every key matches only one value cannot be held which is why we need to introduce a multimap that maps keys (the original map's values) to a Set of values (the orignal map's keys, several of which could have had the same value).


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Method Summary
 java.util.Set<X> getInverse(Y value)
           
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

getInverse

java.util.Set<X> getInverse(Y value)