net.cscott.jutil
Class MapWrapper<K,V>
java.lang.Object
   net.cscott.jutil.MapWrapper<K,V>
net.cscott.jutil.MapWrapper<K,V>
- All Implemented Interfaces: 
- Map<K,V>
- Direct Known Subclasses: 
- GenericInvertibleMap, UnmodifiableMap
- public abstract class MapWrapper<K,V> 
- extends Object- implements Map<K,V>
MapWrapper is a class that acts as a proxy for
    another backing map, to allow for easy extension of
    Map functionality while not restricting developers to
    one particular Map implementation.
- Version:
- $Id: MapWrapper.java,v 1.4 2006-10-30 19:58:06 cananian Exp $
- Author:
- Felix S. Klock II 
 
| Nested classes/interfaces inherited from interface java.util.Map | 
| Map.Entry<K,V> | 
 
 
 
 
MapWrapper
public MapWrapper()
wrapped
protected abstract Map<K,V> wrapped()
- 
 
- 
 
size
public int size()
- 
- Specified by:
- sizein interface- Map<K,V>
 
- 
 
isEmpty
public boolean isEmpty()
- 
- Specified by:
- isEmptyin interface- Map<K,V>
 
- 
 
containsKey
public boolean containsKey(Object o)
- 
- Specified by:
- containsKeyin interface- Map<K,V>
 
- 
 
containsValue
public boolean containsValue(Object o)
- 
- Specified by:
- containsValuein interface- Map<K,V>
 
- 
 
get
public V get(Object o)
- 
- Specified by:
- getin interface- Map<K,V>
 
- 
 
put
public V put(K k,
             V v)
- 
- Specified by:
- putin interface- Map<K,V>
 
- 
 
remove
public V remove(Object o)
- 
- Specified by:
- removein interface- Map<K,V>
 
- 
 
putAll
public void putAll(Map<? extends K,? extends V> m)
- 
- Specified by:
- putAllin interface- Map<K,V>
 
- 
 
clear
public void clear()
- 
- Specified by:
- clearin interface- Map<K,V>
 
- 
 
keySet
public Set<K> keySet()
- 
- Specified by:
- keySetin interface- Map<K,V>
 
- 
 
entrySet
public Set<Map.Entry<K,V>> entrySet()
- 
- Specified by:
- entrySetin interface- Map<K,V>
 
- 
 
values
public Collection<V> values()
- 
- Specified by:
- valuesin interface- Map<K,V>
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
equals
public boolean equals(Object o)
- 
- Specified by:
- equalsin interface- Map<K,V>
- Overrides:
- equalsin class- Object
 
- 
 
hashCode
public int hashCode()
- 
- Specified by:
- hashCodein interface- Map<K,V>
- Overrides:
- hashCodein class- Object
 
- 
 
Copyright (c) 2006 C. Scott Ananian