Record Class TvSeriesSeason
java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.tv.series.model.TvSeriesSeason
- Record Components:
airDate- season air dateepisodeCount- episode countid- TMDB season idname- season nameoverview- season overviewposterPath- poster image pathseasonNumber- season numbervoteAverage- vote average
- All Implemented Interfaces:
TmdbModel,Serializable
public record TvSeriesSeason(String airDate, int episodeCount, int id, String name, String overview, String posterPath, int seasonNumber, double voteAverage)
extends Record
implements TmdbModel
Lightweight TV season representation used in TV series details.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTvSeriesSeason(String airDate, int episodeCount, int id, String name, String overview, String posterPath, int seasonNumber, double voteAverage) Creates an instance of aTvSeriesSeasonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionairDate()Returns the value of theairDaterecord component.intReturns the value of theepisodeCountrecord 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 theposterPathrecord component.intReturns the value of theseasonNumberrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thevoteAveragerecord component.
-
Constructor Details
-
TvSeriesSeason
public TvSeriesSeason(String airDate, int episodeCount, int id, String name, String overview, String posterPath, int seasonNumber, double voteAverage) Creates an instance of aTvSeriesSeasonrecord class.- Parameters:
airDate- the value for theairDaterecord componentepisodeCount- the value for theepisodeCountrecord componentid- the value for theidrecord componentname- the value for thenamerecord componentoverview- the value for theoverviewrecord componentposterPath- the value for theposterPathrecord componentseasonNumber- the value for theseasonNumberrecord componentvoteAverage- the value for thevoteAveragerecord 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
-
episodeCount
public int episodeCount()Returns the value of theepisodeCountrecord component.- Returns:
- the value of the
episodeCountrecord 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
-
posterPath
Returns the value of theposterPathrecord component.- Returns:
- the value of the
posterPathrecord component
-
seasonNumber
public int seasonNumber()Returns the value of theseasonNumberrecord component.- Returns:
- the value of the
seasonNumberrecord component
-
voteAverage
public double voteAverage()Returns the value of thevoteAveragerecord component.- Returns:
- the value of the
voteAveragerecord component
-