Package dev.reuss.tmdb.domain.find.model
Record Class FindResults
java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.find.model.FindResults
- Record Components:
movieResults- matching moviespersonResults- matching peopletvResults- matching TV showstvEpisodeResults- matching TV episodestvSeasonResults- matching TV seasons
- All Implemented Interfaces:
TmdbModel,Serializable
public record FindResults(List<FindMovieResult> movieResults, List<Object> personResults, List<Object> tvResults, List<Object> tvEpisodeResults, List<Object> tvSeasonResults)
extends Record
implements TmdbModel
Results returned by TMDB find.
- See Also:
-
Constructor Summary
Constructors -
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 themovieResultsrecord component.Returns the value of thepersonResultsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetvEpisodeResultsrecord component.Returns the value of thetvResultsrecord component.Returns the value of thetvSeasonResultsrecord component.
-
Constructor Details
-
FindResults
public FindResults(List<FindMovieResult> movieResults, List<Object> personResults, List<Object> tvResults, List<Object> tvEpisodeResults, List<Object> tvSeasonResults) Creates an instance of aFindResultsrecord class.- Parameters:
movieResults- the value for themovieResultsrecord componentpersonResults- the value for thepersonResultsrecord componenttvResults- the value for thetvResultsrecord componenttvEpisodeResults- the value for thetvEpisodeResultsrecord componenttvSeasonResults- the value for thetvSeasonResultsrecord 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). -
movieResults
Returns the value of themovieResultsrecord component.- Returns:
- the value of the
movieResultsrecord component
-
personResults
Returns the value of thepersonResultsrecord component.- Returns:
- the value of the
personResultsrecord component
-
tvResults
Returns the value of thetvResultsrecord component.- Returns:
- the value of the
tvResultsrecord component
-
tvEpisodeResults
Returns the value of thetvEpisodeResultsrecord component.- Returns:
- the value of the
tvEpisodeResultsrecord component
-
tvSeasonResults
Returns the value of thetvSeasonResultsrecord component.- Returns:
- the value of the
tvSeasonResultsrecord component
-