Record Class SearchOperators
java.lang.Object
java.lang.Record
net.ygbstudio.jbrave.core.domain.dto.web.SearchOperators
- Record Components:
applied- whether search operators were detected and applied to the querycleanedQuery- the query string after operator cleanupsites- the sites or domains extracted from the search operators
public record SearchOperators(Boolean applied, String cleanedQuery, List<String> sites)
extends Record
Search operators that were detected and applied to the query according to the Brave Search API
documentation.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchOperators(Boolean applied, String cleanedQuery, List<String> sites) Creates an instance of aSearchOperatorsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapplied()Returns the value of theappliedrecord component.Returns the value of thecleanedQueryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sites()Returns the value of thesitesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SearchOperators
Creates an instance of aSearchOperatorsrecord class.- Parameters:
applied- the value for theappliedrecord componentcleanedQuery- the value for thecleanedQueryrecord componentsites- the value for thesitesrecord 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). -
applied
Returns the value of theappliedrecord component.- Returns:
- the value of the
appliedrecord component
-
cleanedQuery
Returns the value of thecleanedQueryrecord component.- Returns:
- the value of the
cleanedQueryrecord component
-
sites
Returns the value of thesitesrecord component.- Returns:
- the value of the
sitesrecord component
-