Record Class McpPageDomSnapshot
java.lang.Object
java.lang.Record
com.shaft.mcp.McpPageDomSnapshot
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecharacterCountrecord component.Returns the value of thecurrentUrlrecord component.dom()Returns the value of thedomrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetruncatedrecord component.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
McpPageDomSnapshot
public McpPageDomSnapshot(String currentUrl, String title, String dom, int characterCount, boolean truncated, List<String> warnings) Creates an instance of aMcpPageDomSnapshotrecord class.- Parameters:
currentUrl- the value for thecurrentUrlrecord componenttitle- the value for thetitlerecord componentdom- the value for thedomrecord componentcharacterCount- the value for thecharacterCountrecord componenttruncated- the value for thetruncatedrecord componentwarnings- the value for thewarningsrecord component
-
-
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. -
currentUrl
Returns the value of thecurrentUrlrecord component.- Returns:
- the value of the
currentUrlrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
dom
Returns the value of thedomrecord component.- Returns:
- the value of the
domrecord component
-
characterCount
public int characterCount()Returns the value of thecharacterCountrecord component.- Returns:
- the value of the
characterCountrecord component
-
truncated
public boolean truncated()Returns the value of thetruncatedrecord component.- Returns:
- the value of the
truncatedrecord component
-
warnings
-