Class JdkMapAdapterStringMap
- java.lang.Object
-
- org.apache.logging.log4j.core.impl.JdkMapAdapterStringMap
-
- All Implemented Interfaces:
Serializable,ReadOnlyStringMap,StringMap
public class JdkMapAdapterStringMap extends Object implements StringMap
Provides a read-onlyStringMapview of aMap<String, String>.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JdkMapAdapterStringMap()JdkMapAdapterStringMap(Map<String,String> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(String key)booleanequals(Object object)<V> voidforEach(BiConsumer<String,? super V> action)<V,S>
voidforEach(TriConsumer<String,? super V,S> action, S state)voidfreeze()<V> VgetValue(String key)inthashCode()booleanisEmpty()booleanisFrozen()voidputAll(ReadOnlyStringMap source)voidputValue(String key, Object value)voidremove(String key)intsize()Map<String,String>toMap()StringtoString()
-
-
-
Method Detail
-
toMap
public Map<String,String> toMap()
- Specified by:
toMapin interfaceReadOnlyStringMap
-
containsKey
public boolean containsKey(String key)
- Specified by:
containsKeyin interfaceReadOnlyStringMap
-
forEach
public <V> void forEach(BiConsumer<String,? super V> action)
- Specified by:
forEachin interfaceReadOnlyStringMap
-
forEach
public <V,S> void forEach(TriConsumer<String,? super V,S> action, S state)
- Specified by:
forEachin interfaceReadOnlyStringMap
-
getValue
public <V> V getValue(String key)
- Specified by:
getValuein interfaceReadOnlyStringMap
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceReadOnlyStringMap
-
size
public int size()
- Specified by:
sizein interfaceReadOnlyStringMap
-
putAll
public void putAll(ReadOnlyStringMap source)
-
equals
public boolean equals(Object object)
-
-