Class KeyValuePair

java.lang.Object
org.apache.logging.log4j.core.util.KeyValuePair

@Plugin(name="KeyValuePair", category="Core", printObject=true) public final class KeyValuePair extends Object
Key/Value pair configuration item.
Since:
2.1 implements hashCode() and equals(Object)
  • Field Details

    • EMPTY_ARRAY

      public static final KeyValuePair[] EMPTY_ARRAY
      The empty array.
  • Constructor Details

    • KeyValuePair

      public KeyValuePair(String key, String value)
      Constructs a key/value pair. The constructor should only be called from test classes.
      Parameters:
      key - The key.
      value - The value.
  • Method Details