public interface InvertibleMap<K,V>
extends java.util.Map<K,V>
InvertibleMap is an extension of the
Map interface to allow users to do reverse lookups on
the mappings maintained.
Since Maps are allowed to map multiple keys to a
single value, the inversion of a Map is not
necessarily a Map itself; thus we return a
MultiMap for the inverted view. The returned
MultiMap is not guaranteed to be modfiable, even if
this is (ie, changes to the data structure may still
have to be made through this rather than directly to
the returned MultiMap).| Modifier and Type | Method and Description |
|---|---|
MultiMap<V,K> |
invert()
Returns a inverted view of
this. |
Copyright (c) 2006 C. Scott Ananian