Package com.codeborne.selenide
Record Class ScrollOptions
java.lang.Object
java.lang.Record
com.codeborne.selenide.ScrollOptions
-
Constructor Summary
ConstructorsConstructorDescriptionScrollOptions(ScrollDirection direction, int distance) Creates an instance of aScrollOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScrollOptionsReturns the value of thedirectionrecord component.static ScrollOptionsdirection(ScrollDirection scrollDirection) intdistance()Returns the value of thedistancerecord component.distance(int distance) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScrollOptions
Creates an instance of aScrollOptionsrecord class.- Parameters:
direction- the value for thedirectionrecord componentdistance- the value for thedistancerecord component
-
-
Method Details
-
defaultScrollOptions
-
direction
-
distance
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
distance
public int distance()Returns the value of thedistancerecord component.- Returns:
- the value of the
distancerecord component
-