Record Class DocsRetrievalClient.Result
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.aiassistant.impl.function.manual.DocsRetrievalClient.Result
- Enclosing class:
DocsRetrievalClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theheadingPathrecord component.@Nullable Stringlanguage()Returns the value of thelanguagerecord component.doublescore()Returns the value of thescorerecord 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.@Nullable Stringversion()Returns the value of theversionrecord component.
-
Constructor Details
-
Result
public Result(String url, String title, @Nullable List<String> headingPath, String content, @Nullable String version, @Nullable String language, double score) Creates an instance of aResultrecord class.- Parameters:
url- the value for theurlrecord componenttitle- the value for thetitlerecord componentheadingPath- the value for theheadingPathrecord componentcontent- the value for thecontentrecord componentversion- the value for theversionrecord componentlanguage- the value for thelanguagerecord componentscore- the value for thescorerecord 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. -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
headingPath
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
score
public double score()Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-