Record Class TvSeriesEpisode

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