|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.util.KeyValuePair
@Plugin(name="KeyValuePair", category="Core", printObject=true) public final class KeyValuePair
Key/Value pair configuration item.
Serializable
, 2.1 implements hashCode()
and equals(Object)
Nested Class Summary | |
---|---|
static class |
KeyValuePair.Builder
|
Constructor Summary | |
---|---|
KeyValuePair(String key,
String value)
Constructs a key/value pair. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getKey()
Returns the key. |
String |
getValue()
Returns the value. |
int |
hashCode()
|
static KeyValuePair.Builder |
newBuilder()
|
String |
toString()
|
protected Object |
writeReplace()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public KeyValuePair(String key, String value)
key
- The key.value
- The value.Method Detail |
---|
public String getKey()
public String getValue()
public String toString()
toString
in class Object
@PluginBuilderFactory public static KeyValuePair.Builder newBuilder()
protected Object writeReplace() throws ObjectStreamException
ObjectStreamException
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2015 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.