Record Class ImageResult
java.lang.Object
java.lang.Record
net.ygbstudio.jbrave.core.domain.dto.image.ImageResult
- Record Components:
type- The type of the image result.title- The title of the image.url- The URL of the image.source- The source of the image.pageFetched- The date when the page was fetched.thumbnail- The thumbnail representation of the image.properties- The properties of the image.metaUrl- Metadata about the image URL.confidence- The confidence score of the image result.
public record ImageResult(String type, String title, String url, String source, String pageFetched, ImageThumbnail thumbnail, Properties properties, MetaUrl metaUrl, String confidence)
extends Record
Represents an image result in search responses. This class provides structured data about images
in the Brave Search API results.
-
Constructor Summary
ConstructorsConstructorDescriptionImageResult(String type, String title, String url, String source, String pageFetched, ImageThumbnail thumbnail, Properties properties, MetaUrl metaUrl, String confidence) Creates an instance of aImageResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfidencerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metaUrl()Returns the value of themetaUrlrecord component.Returns the value of thepageFetchedrecord component.Returns the value of thepropertiesrecord component.source()Returns the value of thesourcerecord component.Returns the value of thethumbnailrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.url()Returns the value of theurlrecord component.
-
Constructor Details
-
ImageResult
public ImageResult(String type, String title, String url, String source, String pageFetched, ImageThumbnail thumbnail, Properties properties, MetaUrl metaUrl, String confidence) Creates an instance of aImageResultrecord class.- Parameters:
type- the value for thetyperecord componenttitle- the value for thetitlerecord componenturl- the value for theurlrecord componentsource- the value for thesourcerecord componentpageFetched- the value for thepageFetchedrecord componentthumbnail- the value for thethumbnailrecord componentproperties- the value for thepropertiesrecord componentmetaUrl- the value for themetaUrlrecord componentconfidence- the value for theconfidencerecord 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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
pageFetched
Returns the value of thepageFetchedrecord component.- Returns:
- the value of the
pageFetchedrecord component
-
thumbnail
Returns the value of thethumbnailrecord component.- Returns:
- the value of the
thumbnailrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
metaUrl
Returns the value of themetaUrlrecord component.- Returns:
- the value of the
metaUrlrecord component
-
confidence
Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-