Record Class PictureResults
java.lang.Object
java.lang.Record
net.ygbstudio.jbrave.core.domain.dto.web.PictureResults
- Record Components:
viewMoreUrl- A URL where more image results can be viewed.results- A list of thumbnail images that match the search query.
Represents a collection of image results in search responses. This is used in the Brave Search
API to provide structured data about images related to a search query, along with a link to view
more results.
-
Constructor Summary
ConstructorsConstructorDescriptionPictureResults(String viewMoreUrl, List<Thumbnail> results) Creates an instance of aPictureResultsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.results()Returns the value of theresultsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theviewMoreUrlrecord component.
-
Constructor Details
-
PictureResults
Creates an instance of aPictureResultsrecord class.- Parameters:
viewMoreUrl- the value for theviewMoreUrlrecord componentresults- the value for theresultsrecord 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). -
viewMoreUrl
Returns the value of theviewMoreUrlrecord component.- Returns:
- the value of the
viewMoreUrlrecord component
-
results
Returns the value of theresultsrecord component.- Returns:
- the value of the
resultsrecord component
-