Record Class PageContext
java.lang.Object
java.lang.Record
com.shaft.capture.model.PageContext
- Record Components:
url- sanitized URLtitle- page titlelogicalWindowId- stable logical window or tab identifierframePath- logical frame path from the top-level documentviewportWidth- viewport width in CSS pixelsviewportHeight- viewport height in CSS pixels
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theframePathrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelogicalWindowIdrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.intReturns the value of theviewportHeightrecord component.intReturns the value of theviewportWidthrecord component.
-
Constructor Details
-
PageContext
-
-
Method Details
-
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. -
url
-
title
-
logicalWindowId
Returns the value of thelogicalWindowIdrecord component.- Returns:
- the value of the
logicalWindowIdrecord component
-
framePath
-
viewportWidth
public int viewportWidth()Returns the value of theviewportWidthrecord component.- Returns:
- the value of the
viewportWidthrecord component
-
viewportHeight
public int viewportHeight()Returns the value of theviewportHeightrecord component.- Returns:
- the value of the
viewportHeightrecord component
-