Class ExtrasPatternParser.ReadOnlyMap

java.lang.Object
org.apache.log4j.pattern.ExtrasPatternParser.ReadOnlyMap
All Implemented Interfaces:
Map
Enclosing class:
ExtrasPatternParser

private static class ExtrasPatternParser.ReadOnlyMap extends Object implements Map
The class wraps another Map but throws exceptions on any attempt to modify the map.
  • Field Details

    • map

      private final Map map
      Wrapped map.
  • Constructor Details

    • ReadOnlyMap

      public ReadOnlyMap(Map src)
      Constructor
      Parameters:
      src - source map.
  • Method Details

    • 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
    • get

      public Object get(Object key)
      Specified by:
      get in interface Map
    • isEmpty

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

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

      public Object put(Object key, Object value)
      Specified by:
      put in interface Map
    • putAll

      public void putAll(Map t)
      Specified by:
      putAll in interface Map
    • remove

      public Object remove(Object key)
      Specified by:
      remove in interface Map
    • size

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

      public Collection values()
      Specified by:
      values in interface Map