Record Class Videos
java.lang.Object
java.lang.Record
net.ygbstudio.jbrave.core.domain.dto.result.search.Videos
- Record Components:
type- The type of the videos.results- A list ofVideoResultobjects representing the videos.mutatedByGoggles- A boolean indicating whether the videos were mutated by the Goggles feature.
public record Videos(String type, List<VideoResult> results, Boolean mutatedByGoggles)
extends Record
Represents video information in search results. This class provides structured data about videos
in the Brave Search API results.
-
Constructor Summary
ConstructorsConstructorDescriptionVideos(String type, List<VideoResult> results, Boolean mutatedByGoggles) Creates an instance of aVideosrecord 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.Returns the value of themutatedByGogglesrecord component.results()Returns the value of theresultsrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Videos
Creates an instance of aVideosrecord class.- Parameters:
type- the value for thetyperecord componentresults- the value for theresultsrecord componentmutatedByGoggles- the value for themutatedByGogglesrecord 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
-
results
Returns the value of theresultsrecord component.- Returns:
- the value of the
resultsrecord component
-
mutatedByGoggles
Returns the value of themutatedByGogglesrecord component.- Returns:
- the value of the
mutatedByGogglesrecord component
-