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 classPatternMatch.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 booleanequals(Object obj)StringgetKey()Returns the key.StringgetPattern()Returns the pattern.inthashCode()static PatternMatch.BuildernewBuilder()StringtoString()
-
-
-
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()
-
-