Class AbstractMapDecorator

    • Field Detail

      • map

        protected transient Map map
        The map to decorate
    • Constructor Detail

      • AbstractMapDecorator

        protected AbstractMapDecorator()
        Constructor only used in deserialization, do not use otherwise.
        Since:
        Commons Collections 3.1
      • AbstractMapDecorator

        public AbstractMapDecorator​(Map map)
        Constructor that wraps (not copies).
        Parameters:
        map - the map to decorate, must not be null
        Throws:
        IllegalArgumentException - if the collection is null
    • Method Detail

      • getMap

        protected Map getMap()
        Gets the map being decorated.
        Returns:
        the decorated map
      • clear

        public void clear()
        Specified by:
        clear in interface Map
      • containsKey

        public boolean containsKey​(Object key)
        Specified by:
        containsKey in interface Map
      • containsValue

        public boolean containsValue​(Object value)
        Specified by:
        containsValue in interface Map
      • entrySet

        public Set entrySet()
        Specified by:
        entrySet in interface Map
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Map
      • keySet

        public Set keySet()
        Specified by:
        keySet in interface Map
      • putAll

        public void putAll​(Map mapToCopy)
        Specified by:
        putAll in interface Map
      • size

        public int size()
        Specified by:
        size in interface Map