Class MapEntry

java.lang.Object
org.apache.logging.log4j.core.jackson.MapEntry

public final class MapEntry extends Object

Consider this class private.

Used to represent map entries in a generic fashion because the default Jackson behavior uses the key as the element tag. Using the key as an element/property name would mean that you cannot have a generic JSON/XML schema for all log event.

  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getKey

      public String getKey()
    • getValue

      public String getValue()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • setKey

      public void setKey(String key)
    • setValue

      public void setValue(String value)
    • toString

      public String toString()
      Overrides:
      toString in class Object