net.cscott.jutil
public class GenericInvertibleMap<K,V> extends MapWrapper<K,V> implements InvertibleMap<K,V>
Version: $Id: GenericInvertibleMap.java,v 1.5 2006-10-30 19:58: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
.