net.cscott.jutil
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.Version: $Id: GenericInvertibleMap.java,v 1.2 2004/01/13 20:47:05 cananian Exp $
Constructor Summary | |
---|---|
GenericInvertibleMap() Constructs an invertible map backed by a HashMap. | |
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(Map<K,V> m) |
Method Summary | |
---|---|
MultiMap<V,K> | invert() Returns an unmodifiable inverted view of this . |
V | put(K key, V value) |
void | putAll(Map<? extends K,? extends V> m) |
V | remove(Object key) |
mf
and an inverted map constructed by
mmf
.this
.