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()
          Returns the key.
 String getValue()
          Returns 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()
Returns the key.

Returns:
the key.

getValue

public String getValue()
Returns 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-2013 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.