Package net.cscott.jutil
Interface InvertibleMap<K,V>
- All Superinterfaces:
Map<K,V>
- All Known Subinterfaces:
InvertibleMultiMap<K,V>
- All Known Implementing Classes:
GenericInvertibleMap,GenericInvertibleMultiMap
An
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).- Author:
- Felix S. Klock II <pnkfelix@mit.edu>
-
Nested Class Summary
-
Method Summary
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
invert
-