Class KeyValuePair
- java.lang.Object
-
- org.apache.logging.log4j.core.util.KeyValuePair
-
@Plugin(name="KeyValuePair", category="Core", printObject=true) public final class KeyValuePair extends Object
Key/Value pair configuration item.- Since:
- 2.1 implements
hashCode()
andequals(Object)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KeyValuePair.Builder
-
Constructor Summary
Constructors Constructor Description KeyValuePair(String key, String value)
Constructs a key/value pair.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getKey()
Returns the key.String
getValue()
Returns the value.int
hashCode()
static KeyValuePair.Builder
newBuilder()
String
toString()
-
-
-
Method Detail
-
getKey
public String getKey()
Returns the key.- Returns:
- the key.
-
getValue
public String getValue()
Returns the value.- Returns:
- The value.
-
newBuilder
@PluginBuilderFactory public static KeyValuePair.Builder newBuilder()
-
-