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 classKeyValuePair.Builder
-
Field Summary
Fields Modifier and Type Field Description static KeyValuePair[]EMPTY_ARRAYThe empty array.
-
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 booleanequals(Object obj)StringgetKey()Returns the key.StringgetValue()Returns the value.inthashCode()static KeyValuePair.BuildernewBuilder()StringtoString()
-
-
-
Field Detail
-
EMPTY_ARRAY
public static final KeyValuePair[] EMPTY_ARRAY
The empty array.
-
-
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()
-
-