java.lang.Object | |
↳ | org.apache.commons.collections.ProxyMap |
This class is deprecated.
Moved to map subpackage as AbstractMapDecorator. It will be removed in v4.0.
This Map
wraps another Map
implementation, using the wrapped instance for its default
implementation. This class is used as a framework on which to
build to extensions for its wrapped Map
object which
would be unavailable or inconvenient via sub-classing (but usable
via composition).
This implementation does not perform any special processing with
entrySet()
, keySet()
or 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.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
map | The Map to delegate to. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor that uses the specified map to delegate to.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invokes the underlying
clear() method. | |||||||||||
Invokes the underlying
containsKey(Object) method. | |||||||||||
Invokes the underlying
containsValue(Object) method. | |||||||||||
Invokes the underlying
entrySet() method. | |||||||||||
Invokes the underlying
equals(Object) method. | |||||||||||
Invokes the underlying
get(Object) method. | |||||||||||
Invokes the underlying
hashCode() method. | |||||||||||
Invokes the underlying
isEmpty() method. | |||||||||||
Invokes the underlying
keySet() method. | |||||||||||
Invokes the underlying
put(Object, Object) method. | |||||||||||
Invokes the underlying
putAll(Map) method. | |||||||||||
Invokes the underlying
remove(Object) method. | |||||||||||
Invokes the underlying
size() method. | |||||||||||
Invokes the underlying
values() method. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.util.Map
|
Constructor that uses the specified map to delegate to.
Note that the map is used for delegation, and is not copied. This is
different to the normal use of a Map
parameter in
collections constructors.
map | the Map to delegate to
|
---|