Class GenericInvertibleMap<K,V>

java.lang.Object
net.cscott.jutil.MapWrapper<K,V>
net.cscott.jutil.GenericInvertibleMap<K,V>
All Implemented Interfaces:
Map<K,V>, InvertibleMap<K,V>

public class GenericInvertibleMap<K,V> extends MapWrapper<K,V> implements InvertibleMap<K,V>
GenericInvertibleMap is a default implementation of InvertibleMap. It returns unmodifiable inverted views of the mappings it maintains.
Author:
Felix S. Klock II <pnkfelix@mit.edu>
  • Constructor Details

    • GenericInvertibleMap

      public GenericInvertibleMap()
      Constructs an invertible map backed by a HashMap.
    • GenericInvertibleMap

      public GenericInvertibleMap(MapFactory<K,V> mf, MultiMapFactory<V,K> mmf)
      Constructs an invertible map backed by a map constructed by mf and an inverted map constructed by mmf.
    • GenericInvertibleMap

      public GenericInvertibleMap(Map<K,V> m)
  • Method Details