java.lang.Object
org.evomaster.client.java.controller.mongo.operations.RegexOptions

public final class RegexOptions extends Object
Options supported by MongoDB's $regex operator.
  • Constructor Details

    • RegexOptions

      public RegexOptions()
      Default constructor for creating a RegexOptions instance. Initializes the regex options with all settings set to false.
    • RegexOptions

      public RegexOptions(boolean caseInsensitive, boolean multiline, boolean dotAll, boolean extended, boolean unicode)
      Constructs a new instance of RegexOptions with the specified options.
      Parameters:
      caseInsensitive - whether the regex evaluation should be case-insensitive.
      multiline - whether the regex evaluation should recognize the start (^) and end ($) anchors as beginning and end of each line, respectively.
      dotAll - whether the dot (.) in the regex should match all characters, including line terminators.
      extended - whether the regex should allow extended syntax, such as whitespace and comments.
      unicode - whether the regex should handle Unicode-specific properties.
  • Method Details

    • isCaseInsensitive

      public boolean isCaseInsensitive()
    • isMultiline

      public boolean isMultiline()
    • isDotAll

      public boolean isDotAll()
    • isExtended

      public boolean isExtended()
    • isUnicode

      public boolean isUnicode()
    • isEmpty

      public boolean isEmpty()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object