Class PatternMatch
- java.lang.Object
-
- org.apache.logging.log4j.core.layout.PatternMatch
-
@Plugin(name="PatternMatch", category="Core", printObject=true) public final class PatternMatch extends Object
PatternMatch configuration item.- Since:
- 2.4.1 implements
Serializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PatternMatch.Builder
-
Constructor Summary
Constructors Constructor Description PatternMatch(String key, String pattern)
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
getPattern()
Returns the pattern.int
hashCode()
static PatternMatch.Builder
newBuilder()
String
toString()
-
-
-
Method Detail
-
getKey
public String getKey()
Returns the key.- Returns:
- the key.
-
getPattern
public String getPattern()
Returns the pattern.- Returns:
- The pattern.
-
newBuilder
@PluginBuilderFactory public static PatternMatch.Builder newBuilder()
-
-