jwutil.collections
Interface InvertibleMultiMap
- All Superinterfaces: 
- BinaryRelation, InvertibleMap, java.util.Map, MultiMap
- All Known Implementing Classes: 
- GenericInvertibleMultiMap
- public interface InvertibleMultiMap 
- extends MultiMap, InvertibleMap
An InvertibleMultiMap is an extension of the
 MultiMap interface to allow users to do reverse lookups on
 the mappings maintained.  
 If, for MultiMap m,
 m.contains(a, b), then
 m.invert().contains(b, a).
 If the InvertibleMultiMap is mutable, the
 InvertibleMultiMap returned by its invert()
 method should also be mutable.  Moreover, for any
 InvertibleMultiMap, 
 this.invert().invert()==this.
- Version:
- $Id: InvertibleMultiMap.java 1934 2004-09-27 22:42:35Z joewhaley $
- Author:
- C. Scott Ananian 
 
| Nested classes/interfaces inherited from interface java.util.Map | 
| java.util.Map.Entry<K,V> | 
 
| Nested classes/interfaces inherited from interface java.util.Map | 
| java.util.Map.Entry<K,V> | 
 
 
| Methods inherited from interface jwutil.collections.MultiMap | 
| add, addAll, addAll, computeHistogram, contains, entrySet, get, getValues, put, putAll, remove, remove, removeAll, retainAll, size | 
 
| Methods inherited from interface java.util.Map | 
| clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, values | 
 
| Methods inherited from interface java.util.Map | 
| clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, values | 
 
invert
MultiMap invert()
- Returns a inverted view of this.
    Thus, ifthisis aMultiMapwith domain A
    and range B, the returnedMultiMap,imap, will be aMultiMapwith domain
    B and range A, such that b in B will map inimapto a collection containing a,
    if and only if a inthismaps to
    a collection containing b.
 
- 
- Specified by:
- invertin interface- InvertibleMap
 
- 
 
Copyright © 2004-2008 SUIF Compiler Group. All Rights Reserved.