Record Class TvSeriesEpisode
java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.tv.series.model.TvSeriesEpisode
- Record Components:
id- TMDB episode idname- episode nameoverview- episode overviewvoteAverage- vote averagevoteCount- vote countairDate- episode air dateepisodeNumber- episode numberproductionCode- production coderuntime- runtime in minutesseasonNumber- season numbershowId- TMDB TV series idstillPath- still image path
- All Implemented Interfaces:
TmdbModel,Serializable
public record TvSeriesEpisode(int id, String name, String overview, double voteAverage, int voteCount, String airDate, int episodeNumber, String productionCode, Integer runtime, int seasonNumber, int showId, String stillPath)
extends Record
implements TmdbModel
Lightweight TV episode representation used in TV series details.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionairDate()Returns the value of theairDaterecord component.intReturns the value of theepisodeNumberrecord component.final booleanIndicates whether some other object is "equal to" this one.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
-
TvSeriesEpisode
public TvSeriesEpisode(int id, String name, String overview, double voteAverage, int voteCount, String airDate, int episodeNumber, String productionCode, Integer runtime, int seasonNumber, int showId, String stillPath) Creates an instance of aTvSeriesEpisoderecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentoverview- the value for theoverviewrecord componentvoteAverage- the value for thevoteAveragerecord componentvoteCount- the value for thevoteCountrecord componentairDate- the value for theairDaterecord componentepisodeNumber- the value for theepisodeNumberrecord 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 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 '=='. -
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
-
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
-
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
-
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
-