Record Class EmulatedDeviceProfiles.Profile
java.lang.Object
java.lang.Record
com.shaft.driver.internal.DriverFactory.EmulatedDeviceProfiles.Profile
- Record Components:
deviceName- canonical device namewidth- viewport width in CSS pixelsheight- viewport height in CSS pixelspixelRatio- device scale factoruserAgent- emulated user-agent string
- Enclosing class:
EmulatedDeviceProfiles
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeviceNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.doubleReturns the value of thepixelRatiorecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserAgentrecord component.viewport()Returns the viewport aswidthxheight.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Profile
Creates an instance of aProfilerecord class.- Parameters:
deviceName- the value for thedeviceNamerecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentpixelRatio- the value for thepixelRatiorecord componentuserAgent- the value for theuserAgentrecord component
-
-
Method Details
-
viewport
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
deviceName
Returns the value of thedeviceNamerecord component.- Returns:
- the value of the
deviceNamerecord component
-
width
-
height
-
pixelRatio
public double pixelRatio()Returns the value of thepixelRatiorecord component.- Returns:
- the value of the
pixelRatiorecord component
-
userAgent
-