Record Class McpGuideMatch
java.lang.Object
java.lang.Record
com.shaft.mcp.McpGuideMatch
- Record Components:
title- page titlesection- matched section titleurl- canonical guide URLscore- local relevance scoreexcerpt- short official guide excerptcodeBlocks- nearby official guide code examples
-
Constructor Summary
ConstructorsConstructorDescriptionMcpGuideMatch(String title, String section, String url, double score, String excerpt, List<McpCodeBlock> codeBlocks) Creates an immutable guide match. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecodeBlocksrecord component.final booleanIndicates whether some other object is "equal to" this one.excerpt()Returns the value of theexcerptrecord component.final inthashCode()Returns a hash code value for this object.doublescore()Returns the value of thescorerecord component.section()Returns the value of thesectionrecord 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.
-
Constructor Details
-
McpGuideMatch
-
-
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. -
title
-
section
-
url
-
score
-
excerpt
-
codeBlocks
Returns the value of thecodeBlocksrecord component.- Returns:
- the value of the
codeBlocksrecord component
-