org.apache.logging.log4j
Class ThreadContext.ImmutableMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,String>
          extended by org.apache.logging.log4j.ThreadContext.ImmutableMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,String>
Enclosing class:
ThreadContext

public static class ThreadContext.ImmutableMap
extends HashMap<String,String>

An immutable Context Map.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
ThreadContext.ImmutableMap()
           
ThreadContext.ImmutableMap(Map<String,String> map)
           
 
Method Summary
 void clear()
           
 String put(String s, String s1)
           
 void putAll(Map<? extends String,? extends String> map)
           
 String remove(Object o)
           
 
Methods inherited from class java.util.HashMap
clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ThreadContext.ImmutableMap

public ThreadContext.ImmutableMap()

ThreadContext.ImmutableMap

public ThreadContext.ImmutableMap(Map<String,String> map)
Method Detail

put

public String put(String s,
                  String s1)
Specified by:
put in interface Map<String,String>
Overrides:
put in class HashMap<String,String>

putAll

public void putAll(Map<? extends String,? extends String> map)
Specified by:
putAll in interface Map<String,String>
Overrides:
putAll in class HashMap<String,String>

remove

public String remove(Object o)
Specified by:
remove in interface Map<String,String>
Overrides:
remove in class HashMap<String,String>

clear

public void clear()
Specified by:
clear in interface Map<String,String>
Overrides:
clear in class HashMap<String,String>


Copyright © 1999-2013 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.