Class PlainIpListParser.FinalBuilder
java.lang.Object
de.gustavblass.nginx.ipguard4j.parser.PlainIpListParser.FinalBuilder
- Enclosing class:
PlainIpListParser
FinalBuilder ::= '#addCommentSymbol'* build PlainIpListParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe selectedcommentCharactersfor thePlainIpListParserthat is being built. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull PlainIpListParser.FinalBuilderaddCommentSymbol(char commentSymbol) Inserts the given character into thecommentCharactersof thePlainIpListParserthat is being built.@NonNull PlainIpListParserbuild()
-
Field Details
-
commentCharacters
The selectedcommentCharactersfor thePlainIpListParserthat is being built.
-
-
Constructor Details
-
FinalBuilder
public FinalBuilder()
-
-
Method Details
-
addCommentSymbol
@Contract(mutates="this", value="_ -> this") @NonNull public @NonNull PlainIpListParser.FinalBuilder addCommentSymbol(char commentSymbol) Inserts the given character into thecommentCharactersof thePlainIpListParserthat is being built.- Parameters:
commentSymbol- The new comment prefix.- Returns:
- This
PlainIpListParser.FinalBuilderinstance.
-
build
- Returns:
- A new
PlainIpListParserinstance with the selectedcommentCharacters.
-