Class TolerantArgumentMatcher.Builder
java.lang.Object
dev.dokimos.core.evaluators.agents.TolerantArgumentMatcher.Builder
- Enclosing class:
TolerantArgumentMatcher
Builder for constructing the matcher.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the matcher.caseInsensitive(boolean caseInsensitive) Compares strings case-insensitively.mode(ArgMatchMode mode) Sets the key-set comparison mode.trimStrings(boolean trimStrings) Trims leading and trailing whitespace from strings before comparison.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mode
Sets the key-set comparison mode.- Parameters:
mode- the mode (defaultArgMatchMode.EXACT)- Returns:
- this builder
-
trimStrings
Trims leading and trailing whitespace from strings before comparison.- Parameters:
trimStrings- true to trim strings (default false)- Returns:
- this builder
-
caseInsensitive
Compares strings case-insensitively.- Parameters:
caseInsensitive- true for case-insensitive comparison (default false)- Returns:
- this builder
-
build
Builds the matcher.- Returns:
- a new matcher
-