@Plugin(name="KeyValuePair", category="Core", printObject=true) public final class KeyValuePair extends Object
hashCode()
and equals(Object)
Modifier and Type | Class and Description |
---|---|
static class |
KeyValuePair.Builder |
Modifier and Type | Field and Description |
---|---|
static KeyValuePair[] |
EMPTY_ARRAY
The empty array.
|
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() |
public static final KeyValuePair[] EMPTY_ARRAY
public String getKey()
public String getValue()
@PluginBuilderFactory public static KeyValuePair.Builder newBuilder()
Copyright © 1999-2023 The 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.