@Plugin(name="KeyValuePair", category="Core", printObject=true) public final class KeyValuePair extends Object
Constructor and Description |
---|
KeyValuePair(String key,
String value)
Constructs a key/value pair.
|
Modifier and Type | Method and Description |
---|---|
static KeyValuePair |
createPair(String key,
String value)
Create a Key/Value pair.
|
String |
getKey()
Returns the key.
|
String |
getValue()
Returns the value.
|
String |
toString() |
public String getKey()
public String getValue()
@PluginFactory public static KeyValuePair createPair(@PluginAttribute(value="key") String key, @PluginAttribute(value="value") String value)
key
- The key.value
- The value.Copyright © 1999-2018 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.