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 PatternMatchbuild()Builds the object after all configuration has been set.protected ObjectreadResolve()PatternMatch.BuildersetKey(String key)PatternMatch.BuildersetPattern(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:BuilderBuilds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
buildin interfaceBuilder<PatternMatch>- Returns:
- the configured instance.
-
readResolve
protected Object readResolve() throws ObjectStreamException
- Throws:
ObjectStreamException
-
-