Record Class TvSeasonEpisode
java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.tv.season.model.TvSeasonEpisode
- Record Components:
airDate- episode air dateepisodeNumber- episode numberepisodeType- episode typeid- TMDB episode idname- episode nameoverview- episode overviewproductionCode- production coderuntime- runtime in minutesseasonNumber- season numbershowId- TMDB TV series idstillPath- still image pathvoteAverage- vote averagevoteCount- vote countcrew- episode crewguestStars- episode guest stars
- All Implemented Interfaces:
TmdbModel,Serializable
public record TvSeasonEpisode(String airDate, int episodeNumber, String episodeType, int id, String name, String overview, String productionCode, Integer runtime, int seasonNumber, int showId, String stillPath, double voteAverage, int voteCount, List<CrewCredit> crew, List<GuestStarCredit> guestStars)
extends Record
implements TmdbModel
Episode of a TMDB TV season.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTvSeasonEpisode(String airDate, int episodeNumber, String episodeType, int id, String name, String overview, String productionCode, Integer runtime, int seasonNumber, int showId, String stillPath, double voteAverage, int voteCount, List<CrewCredit> crew, List<GuestStarCredit> guestStars) Creates an instance of aTvSeasonEpisoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionairDate()Returns the value of theairDaterecord component.crew()Returns the value of thecrewrecord component.intReturns the value of theepisodeNumberrecord component.Returns the value of theepisodeTyperecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theguestStarsrecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.overview()Returns the value of theoverviewrecord component.Returns the value of theproductionCoderecord component.runtime()Returns the value of theruntimerecord component.intReturns the value of theseasonNumberrecord component.intshowId()Returns the value of theshowIdrecord component.Returns the value of thestillPathrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thevoteAveragerecord component.intReturns the value of thevoteCountrecord component.
-
Constructor Details
-
TvSeasonEpisode
public TvSeasonEpisode(String airDate, int episodeNumber, String episodeType, int id, String name, String overview, String productionCode, Integer runtime, int seasonNumber, int showId, String stillPath, double voteAverage, int voteCount, List<CrewCredit> crew, List<GuestStarCredit> guestStars) Creates an instance of aTvSeasonEpisoderecord class.- Parameters:
airDate- the value for theairDaterecord componentepisodeNumber- the value for theepisodeNumberrecord componentepisodeType- the value for theepisodeTyperecord componentid- the value for theidrecord componentname- the value for thenamerecord componentoverview- the value for theoverviewrecord componentproductionCode- the value for theproductionCoderecord componentruntime- the value for theruntimerecord componentseasonNumber- the value for theseasonNumberrecord componentshowId- the value for theshowIdrecord componentstillPath- the value for thestillPathrecord componentvoteAverage- the value for thevoteAveragerecord componentvoteCount- the value for thevoteCountrecord componentcrew- the value for thecrewrecord componentguestStars- the value for theguestStarsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
airDate
Returns the value of theairDaterecord component.- Returns:
- the value of the
airDaterecord component
-
episodeNumber
public int episodeNumber()Returns the value of theepisodeNumberrecord component.- Returns:
- the value of the
episodeNumberrecord component
-
episodeType
Returns the value of theepisodeTyperecord component.- Returns:
- the value of the
episodeTyperecord component
-
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
overview
Returns the value of theoverviewrecord component.- Returns:
- the value of the
overviewrecord component
-
productionCode
Returns the value of theproductionCoderecord component.- Returns:
- the value of the
productionCoderecord component
-
runtime
Returns the value of theruntimerecord component.- Returns:
- the value of the
runtimerecord component
-
seasonNumber
public int seasonNumber()Returns the value of theseasonNumberrecord component.- Returns:
- the value of the
seasonNumberrecord component
-
showId
public int showId()Returns the value of theshowIdrecord component.- Returns:
- the value of the
showIdrecord component
-
stillPath
Returns the value of thestillPathrecord component.- Returns:
- the value of the
stillPathrecord component
-
voteAverage
public double voteAverage()Returns the value of thevoteAveragerecord component.- Returns:
- the value of the
voteAveragerecord component
-
voteCount
public int voteCount()Returns the value of thevoteCountrecord component.- Returns:
- the value of the
voteCountrecord component
-
crew
Returns the value of thecrewrecord component.- Returns:
- the value of the
crewrecord component
-
guestStars
Returns the value of theguestStarsrecord component.- Returns:
- the value of the
guestStarsrecord component
-