Class PatternMatch.Builder
- java.lang.Object
-
- org.apache.logging.log4j.core.layout.PatternMatch.Builder
-
- All Implemented Interfaces:
Serializable
,Builder<PatternMatch>
- Enclosing class:
- PatternMatch
public static class PatternMatch.Builder extends Object implements Builder<PatternMatch>, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PatternMatch
build()
Builds the object after all configuration has been set.protected Object
readResolve()
PatternMatch.Builder
setKey(String key)
PatternMatch.Builder
setPattern(String pattern)
-
-
-
Method Detail
-
setKey
public PatternMatch.Builder setKey(String key)
-
setPattern
public PatternMatch.Builder setPattern(String pattern)
-
build
public PatternMatch build()
Description copied from interface:Builder
Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
build
in interfaceBuilder<PatternMatch>
- Returns:
- the configured instance.
-
readResolve
protected Object readResolve() throws ObjectStreamException
- Throws:
ObjectStreamException
-
-