Class StringMapMessage

java.lang.Object
org.apache.logging.log4j.message.MapMessage<StringMapMessage,String>
org.apache.logging.log4j.message.StringMapMessage
All Implemented Interfaces:
Serializable, Message, MultiformatMessage, MultiFormatStringBuilderFormattable, StringBuilderFormattable

@AsynchronouslyFormattable public class StringMapMessage extends MapMessage<StringMapMessage,String>
A StringMapMessage typed to String-only values. This is like the MapMessage class before 2.9.
Since:
2.9
See Also:
  • Constructor Details

    • StringMapMessage

      public StringMapMessage()
      Constructs a new instance.
    • StringMapMessage

      public StringMapMessage(int initialCapacity)
      Constructs a new instance.
      Parameters:
      initialCapacity - the initial capacity.
    • StringMapMessage

      public StringMapMessage(Map<String,String> map)
      Constructs a new instance based on an existing Map.
      Parameters:
      map - The Map.
  • Method Details