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-onlyStringMap
view 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 void
clear()
boolean
containsKey(String key)
boolean
equals(Object object)
<V> void
forEach(BiConsumer<String,? super V> action)
<V,S>
voidforEach(TriConsumer<String,? super V,S> action, S state)
void
freeze()
<V> V
getValue(String key)
int
hashCode()
boolean
isEmpty()
boolean
isFrozen()
void
putAll(ReadOnlyStringMap source)
void
putValue(String key, Object value)
void
remove(String key)
int
size()
Map<String,String>
toMap()
String
toString()
-
-
-
Method Detail
-
toMap
public Map<String,String> toMap()
- Specified by:
toMap
in interfaceReadOnlyStringMap
-
containsKey
public boolean containsKey(String key)
- Specified by:
containsKey
in interfaceReadOnlyStringMap
-
forEach
public <V> void forEach(BiConsumer<String,? super V> action)
- Specified by:
forEach
in interfaceReadOnlyStringMap
-
forEach
public <V,S> void forEach(TriConsumer<String,? super V,S> action, S state)
- Specified by:
forEach
in interfaceReadOnlyStringMap
-
getValue
public <V> V getValue(String key)
- Specified by:
getValue
in interfaceReadOnlyStringMap
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceReadOnlyStringMap
-
size
public int size()
- Specified by:
size
in interfaceReadOnlyStringMap
-
putAll
public void putAll(ReadOnlyStringMap source)
-
equals
public boolean equals(Object object)
-
-