org.apache.logging.log4j.core.helpers
Class KeyValuePair

java.lang.Object
  extended by org.apache.logging.log4j.core.helpers.KeyValuePair

public class KeyValuePair
extends Object

Key/Value pair configuration item.


Constructor Summary
KeyValuePair(String key, String value)
          Constructs a key/value pair.
 
Method Summary
static KeyValuePair createPair(String key, String value)
          Create a Key/Value pair.
 String getKey()
          Return the key.
 String getValue()
          Return the value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

getKey

public String getKey()
Return the key.

Returns:
the key.

getValue

public String getValue()
Return the value.

Returns:
The value.

toString

public String toString()
Overrides:
toString in class Object

createPair

public static KeyValuePair createPair(String key,
                                      String value)
Create a Key/Value pair.

Parameters:
key - The key.
value - The value.
Returns:
A KeyValuePair.


Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.