Package com.codeborne.selenide
Record Class HoverOptions
java.lang.Object
java.lang.Record
com.codeborne.selenide.HoverOptions
-
Constructor Summary
ConstructorsConstructorDescriptionHoverOptions(int offsetX, int offsetY) Creates an instance of aHoverOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intoffsetX()Returns the value of theoffsetXrecord component.intoffsetY()Returns the value of theoffsetYrecord component.toString()Returns a string representation of this record class.static HoverOptionswithOffset(int offsetX, int offsetY)
-
Constructor Details
-
HoverOptions
public HoverOptions(int offsetX, int offsetY) Creates an instance of aHoverOptionsrecord class.- Parameters:
offsetX- the value for theoffsetXrecord componentoffsetY- the value for theoffsetYrecord component
-
-
Method Details
-
withOffset
-
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 with '=='. -
offsetX
public int offsetX()Returns the value of theoffsetXrecord component.- Returns:
- the value of the
offsetXrecord component
-
offsetY
public int offsetY()Returns the value of theoffsetYrecord component.- Returns:
- the value of the
offsetYrecord component
-