Class ProxyMap

  • All Implemented Interfaces:

    public abstract class ProxyMap
    extends Object
    implements Map
    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.

    Commons Collections 2.0