| java.lang.Object org.apache.commons.collections.map.AbstractMapDecorator
All known Subclasses: org.apache.commons.collections.map.LazyMap, org.apache.commons.collections.map.ListOrderedMap, org.apache.commons.collections.map.UnmodifiableMap, org.apache.commons.collections.map.FixedSizeMap, org.apache.commons.collections.bidimap.AbstractBidiMapDecorator, org.apache.commons.collections.map.AbstractInputCheckedMapDecorator, org.apache.commons.collections.map.AbstractSortedMapDecorator, org.apache.commons.collections.map.MultiValueMap, org.apache.commons.collections.map.AbstractOrderedMapDecorator, org.apache.commons.collections.map.DefaultedMap,
AbstractMapDecorator | abstract public class AbstractMapDecorator implements Map(Code) | | Provides a base decorator that enables additional functionality to be added
to a Map via decoration.
Methods are forwarded directly to the decorated map.
This implementation does not perform any special processing with
AbstractMapDecorator.entrySet() ,
AbstractMapDecorator.keySet() or
AbstractMapDecorator.values() . Instead
it simply returns the set/collection from the wrapped map. This may be
undesirable, for example if you are trying to write a validating
implementation it would provide a loophole around the validation.
But, you might want that loophole, so this class is kept simple.
since: Commons Collections 3.0 version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $ author: Daniel Rall author: Stephen Colebourne |
Field Summary | |
protected transient Map | map |
map | protected transient Map map(Code) | | The map to decorate
|
AbstractMapDecorator | protected AbstractMapDecorator()(Code) | | Constructor only used in deserialization, do not use otherwise.
since: Commons Collections 3.1 |
AbstractMapDecorator | public AbstractMapDecorator(Map map)(Code) | | Constructor that wraps (not copies).
Parameters: map - the map to decorate, must not be null throws: IllegalArgumentException - if the collection is null |
clear | public void clear()(Code) | | |
containsValue | public boolean containsValue(Object value)(Code) | | |
getMap | protected Map getMap()(Code) | | Gets the map being decorated.
the decorated map |
hashCode | public int hashCode()(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
putAll | public void putAll(Map mapToCopy)(Code) | | |
|
|