Class TolerantArgumentMatcher.Builder

java.lang.Object
dev.dokimos.core.evaluators.agents.TolerantArgumentMatcher.Builder
Enclosing class:
TolerantArgumentMatcher

public static final class TolerantArgumentMatcher.Builder extends Object
Builder for constructing the matcher.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • mode

      Sets the key-set comparison mode.
      Parameters:
      mode - the mode (default ArgMatchMode.EXACT)
      Returns:
      this builder
    • trimStrings

      public TolerantArgumentMatcher.Builder trimStrings(boolean trimStrings)
      Trims leading and trailing whitespace from strings before comparison.
      Parameters:
      trimStrings - true to trim strings (default false)
      Returns:
      this builder
    • caseInsensitive

      public TolerantArgumentMatcher.Builder caseInsensitive(boolean caseInsensitive)
      Compares strings case-insensitively.
      Parameters:
      caseInsensitive - true for case-insensitive comparison (default false)
      Returns:
      this builder
    • build

      public TolerantArgumentMatcher build()
      Builds the matcher.
      Returns:
      a new matcher