@Plugin(name="KeyValuePair", category="Core", printObject=true) public final class KeyValuePair extends Object implements Serializable
Serializable
, 2.1 implements hashCode()
and equals(Object)
Modifier and Type | Class and Description |
---|---|
static class |
KeyValuePair.Builder |
Constructor and Description |
---|
KeyValuePair(String key,
String value)
Constructs a key/value pair.
|
Modifier and Type | Method and Description |
---|---|
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() |
public KeyValuePair(String key, String value)
key
- The key.value
- The value.@PluginBuilderFactory public static KeyValuePair.Builder newBuilder()
protected Object writeReplace() throws ObjectStreamException
ObjectStreamException
Copyright © 1999-2021 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.