Record Class CreditSeason
java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.credits.model.CreditSeason
- Record Components:
airDate- season air dateepisodeCount- episode countid- TMDB season idname- season nameoverview- season overviewposterPath- poster image pathseasonNumber- season numbershowId- TV show id
- All Implemented Interfaces:
TmdbModel,Serializable
public record CreditSeason(String airDate, int episodeCount, int id, String name, String overview, String posterPath, int seasonNumber, int showId)
extends Record
implements TmdbModel
TV season information included in a TMDB credit response.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreditSeason(String airDate, int episodeCount, int id, String name, String overview, String posterPath, int seasonNumber, int showId) Creates an instance of aCreditSeasonrecord 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.intshowId()Returns the value of theshowIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreditSeason
public CreditSeason(String airDate, int episodeCount, int id, String name, String overview, String posterPath, int seasonNumber, int showId) Creates an instance of aCreditSeasonrecord 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 componentshowId- the value for theshowIdrecord 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
-
showId
public int showId()Returns the value of theshowIdrecord component.- Returns:
- the value of the
showIdrecord component
-