Record Class RichCallbackHint
java.lang.Object
java.lang.Record
net.ygbstudio.jbrave.core.domain.dto.web.RichCallbackHint
- Record Components:
vertical- The vertical or category of the search result.callbackKey- A key used to identify the specific callback.
Represents a hint for rich callbacks in search results. This is used in the Brave Search API to
provide additional context for handling rich content callbacks in the search interface.
-
Constructor Summary
ConstructorsConstructorDescriptionRichCallbackHint(String vertical, String callbackKey) Creates an instance of aRichCallbackHintrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecallbackKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.vertical()Returns the value of theverticalrecord component.
-
Constructor Details
-
RichCallbackHint
Creates an instance of aRichCallbackHintrecord class.- Parameters:
vertical- the value for theverticalrecord componentcallbackKey- the value for thecallbackKeyrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
vertical
Returns the value of theverticalrecord component.- Returns:
- the value of the
verticalrecord component
-
callbackKey
Returns the value of thecallbackKeyrecord component.- Returns:
- the value of the
callbackKeyrecord component
-