Top Description Fields Constructors Methods
org.apache.logging.log4j.message

public Class StringMapMessage

extends MapMessage<StringMapMessage, String>
Class Inheritance
Annotations
@PerformanceSensitive:allocation
@AsynchronouslyFormattable
Imports
java.util.Map, org.apache.logging.log4j.util.PerformanceSensitive

A StringMapMessage typed to String-only values. This is like the MapMessage class before 2.9.
Since
2.9

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
StringMapMessage()

Constructs a new instance.

public
StringMapMessage(final int
the initial capacity.
initialCapacity
)

Constructs a new instance.

public
StringMapMessage(final Map<String, String>
The Map.
map
)

Constructs a new instance based on an existing Map.

Method Summary

Modifier and TypeMethod and Description
public StringMapMessage

Returns:

A new StringMapMessage
newInstance
(final Map<String, String>
The Map.
map
)

Overrides org.apache.logging.log4j.message.MapMessage.newInstance.

Constructs a new instance based on an existing Map.

Inherited from org.apache.logging.log4j.message.MapMessage:
appendMapasJavaasJavaUnquotedasJsonasStringasStringasXmlclearcontainsKeyequalsforEachforEachformatToformatTogetgetDatagetFormatgetFormatsgetFormattedMessagegetFormattedMessagegetIndexedReadOnlyStringMapgetParametersgetThrowablehashCodeputputAllremovetoKeytoStringvalidatevalidatevalidatevalidatevalidatevalidatevalidatevalidatevalidatevalidatewithwithwithwithwithwithwithwithwithwith

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.logging.log4j.message.MapMessage.serialVersionUID.

Constructor Detail

StringMapMessageback to summary
public StringMapMessage()

Constructs a new instance.

StringMapMessageback to summary
public StringMapMessage(final int initialCapacity)

Constructs a new instance.

Parameters
initialCapacity:int

the initial capacity.

StringMapMessageback to summary
public StringMapMessage(final Map<String, String> map)

Constructs a new instance based on an existing Map.

Parameters
map:Map<String, String>

The Map.

Method Detail

newInstanceback to summary
public StringMapMessage newInstance(final Map<String, String> map)

Overrides org.apache.logging.log4j.message.MapMessage.newInstance.

Constructs a new instance based on an existing Map.

Parameters
map:Map<String, String>

The Map.

Returns:StringMapMessage

A new StringMapMessage

Annotations
@Override