Record Class TvSeasonEpisode

java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.tv.season.model.TvSeasonEpisode
Record Components:
airDate - episode air date
episodeNumber - episode number
episodeType - episode type
id - TMDB episode id
name - episode name
overview - episode overview
productionCode - production code
runtime - runtime in minutes
seasonNumber - season number
showId - TMDB TV series id
stillPath - still image path
voteAverage - vote average
voteCount - vote count
crew - episode crew
guestStars - 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 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 a TvSeasonEpisode record class.
      Parameters:
      airDate - the value for the airDate record component
      episodeNumber - the value for the episodeNumber record component
      episodeType - the value for the episodeType record component
      id - the value for the id record component
      name - the value for the name record component
      overview - the value for the overview record component
      productionCode - the value for the productionCode record component
      runtime - the value for the runtime record component
      seasonNumber - the value for the seasonNumber record component
      showId - the value for the showId record component
      stillPath - the value for the stillPath record component
      voteAverage - the value for the voteAverage record component
      voteCount - the value for the voteCount record component
      crew - the value for the crew record component
      guestStars - the value for the guestStars record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • airDate

      public String airDate()
      Returns the value of the airDate record component.
      Returns:
      the value of the airDate record component
    • episodeNumber

      public int episodeNumber()
      Returns the value of the episodeNumber record component.
      Returns:
      the value of the episodeNumber record component
    • episodeType

      public String episodeType()
      Returns the value of the episodeType record component.
      Returns:
      the value of the episodeType record component
    • id

      public int id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • overview

      public String overview()
      Returns the value of the overview record component.
      Returns:
      the value of the overview record component
    • productionCode

      public String productionCode()
      Returns the value of the productionCode record component.
      Returns:
      the value of the productionCode record component
    • runtime

      public Integer runtime()
      Returns the value of the runtime record component.
      Returns:
      the value of the runtime record component
    • seasonNumber

      public int seasonNumber()
      Returns the value of the seasonNumber record component.
      Returns:
      the value of the seasonNumber record component
    • showId

      public int showId()
      Returns the value of the showId record component.
      Returns:
      the value of the showId record component
    • stillPath

      public String stillPath()
      Returns the value of the stillPath record component.
      Returns:
      the value of the stillPath record component
    • voteAverage

      public double voteAverage()
      Returns the value of the voteAverage record component.
      Returns:
      the value of the voteAverage record component
    • voteCount

      public int voteCount()
      Returns the value of the voteCount record component.
      Returns:
      the value of the voteCount record component
    • crew

      public List<CrewCredit> crew()
      Returns the value of the crew record component.
      Returns:
      the value of the crew record component
    • guestStars

      public List<GuestStarCredit> guestStars()
      Returns the value of the guestStars record component.
      Returns:
      the value of the guestStars record component