Package com.codeborne.selenide
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 Summary
ConstructorsConstructorDescriptionTextMatchOptions(TextCheck textCheck, CaseSensitivity caseSensitivity, com.codeborne.selenide.WhitespaceHandling whitespaceHandling) Creates an instance of aTextMatchOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecaseSensitivityrecord component.final booleanIndicates whether some other object is "equal to" this one.static TextMatchOptionsfullText()final inthashCode()Returns a hash code value for this object.static TextMatchOptionsReturns the value of thetextCheckrecord component.toMap()toString()Returns a string representation of this record class.com.codeborne.selenide.WhitespaceHandlingReturns the value of thewhitespaceHandlingrecord component.
-
Constructor Details
-
TextMatchOptions
public TextMatchOptions(TextCheck textCheck, CaseSensitivity caseSensitivity, com.codeborne.selenide.WhitespaceHandling whitespaceHandling) Creates an instance of aTextMatchOptionsrecord class.- Parameters:
textCheck- the value for thetextCheckrecord componentcaseSensitivity- the value for thecaseSensitivityrecord componentwhitespaceHandling- the value for thewhitespaceHandlingrecord component
-
-
Method Details
-
fullText
-
partialText
-
caseInsensitive
-
caseSensitive
-
preserveWhitespaces
-
ignoreWhitespaces
-
trimWhitespaces
-
toMap
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
textCheck
Returns the value of thetextCheckrecord component.- Returns:
- the value of the
textCheckrecord component
-
caseSensitivity
Returns the value of thecaseSensitivityrecord component.- Returns:
- the value of the
caseSensitivityrecord component
-
whitespaceHandling
public com.codeborne.selenide.WhitespaceHandling whitespaceHandling()Returns the value of thewhitespaceHandlingrecord component.- Returns:
- the value of the
whitespaceHandlingrecord component
-