Record Class TextMatchOptions

java.lang.Object
java.lang.Record
com.codeborne.selenide.TextMatchOptions

public record TextMatchOptions(TextCheck textCheck, CaseSensitivity caseSensitivity, com.codeborne.selenide.WhitespaceHandling whitespaceHandling) extends Record
  • Constructor Details

    • TextMatchOptions

      public TextMatchOptions(TextCheck textCheck, CaseSensitivity caseSensitivity, com.codeborne.selenide.WhitespaceHandling whitespaceHandling)
      Creates an instance of a TextMatchOptions record class.
      Parameters:
      textCheck - the value for the textCheck record component
      caseSensitivity - the value for the caseSensitivity record component
      whitespaceHandling - the value for the whitespaceHandling record component
  • Method Details

    • fullText

      public static TextMatchOptions fullText()
    • partialText

      public static TextMatchOptions partialText()
    • caseInsensitive

      public TextMatchOptions caseInsensitive()
    • caseSensitive

      public TextMatchOptions caseSensitive()
    • preserveWhitespaces

      public TextMatchOptions preserveWhitespaces()
    • ignoreWhitespaces

      public TextMatchOptions ignoreWhitespaces()
    • trimWhitespaces

      public TextMatchOptions trimWhitespaces()
    • toMap

      public Map<String,String> toMap()
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • textCheck

      public TextCheck textCheck()
      Returns the value of the textCheck record component.
      Returns:
      the value of the textCheck record component
    • caseSensitivity

      public CaseSensitivity caseSensitivity()
      Returns the value of the caseSensitivity record component.
      Returns:
      the value of the caseSensitivity record component
    • whitespaceHandling

      public com.codeborne.selenide.WhitespaceHandling whitespaceHandling()
      Returns the value of the whitespaceHandling record component.
      Returns:
      the value of the whitespaceHandling record component