Record Class MovieData
java.lang.Object
java.lang.Record
net.ygbstudio.jbrave.core.domain.dto.web.MovieData
- Record Components:
name- The title of the movie.description- A brief summary or description of the movie's plot.url- A URL where more information about the movie can be found.thumbnail- A thumbnail image representing the movie.release- The release date or year of the movie.directors- A list of people who directed the movie.actors- A list of actors who appear in the movie.rating- The rating information for the movie.duration- The duration of the movie in a human-readable format.genre- A list of genres that describe the movie.query- The original search query that returned this movie result.
public record MovieData(String name, String description, String url, Thumbnail thumbnail, String release, List<Person> directors, List<Person> actors, Rating rating, String duration, List<String> genre, String query)
extends Record
Represents detailed information about a movie in search results. This is used in the Brave Search
API to provide structured data about movies that match the user's query.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactors()Returns the value of theactorsrecord component.Returns the value of thedescriptionrecord component.Returns the value of thedirectorsrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.genre()Returns the value of thegenrerecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.query()Returns the value of thequeryrecord component.rating()Returns the value of theratingrecord component.release()Returns the value of thereleaserecord component.Returns the value of thethumbnailrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
MovieData
public MovieData(String name, String description, String url, Thumbnail thumbnail, String release, List<Person> directors, List<Person> actors, Rating rating, String duration, List<String> genre, String query) Creates an instance of aMovieDatarecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenturl- the value for theurlrecord componentthumbnail- the value for thethumbnailrecord componentrelease- the value for thereleaserecord componentdirectors- the value for thedirectorsrecord componentactors- the value for theactorsrecord componentrating- the value for theratingrecord componentduration- the value for thedurationrecord componentgenre- the value for thegenrerecord componentquery- the value for thequeryrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
thumbnail
Returns the value of thethumbnailrecord component.- Returns:
- the value of the
thumbnailrecord component
-
release
Returns the value of thereleaserecord component.- Returns:
- the value of the
releaserecord component
-
directors
Returns the value of thedirectorsrecord component.- Returns:
- the value of the
directorsrecord component
-
actors
Returns the value of theactorsrecord component.- Returns:
- the value of the
actorsrecord component
-
rating
Returns the value of theratingrecord component.- Returns:
- the value of the
ratingrecord component
-
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
genre
Returns the value of thegenrerecord component.- Returns:
- the value of the
genrerecord component
-
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-