Record Class TvSeriesScreenedTheatricallyEpisode
java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.tv.series.model.TvSeriesScreenedTheatricallyEpisode
- Record Components:
id- TMDB episode idepisodeNumber- episode numberseasonNumber- season number
- All Implemented Interfaces:
TmdbModel,Serializable
public record TvSeriesScreenedTheatricallyEpisode(int id, int episodeNumber, int seasonNumber)
extends Record
implements TmdbModel
TV episode that has screened theatrically.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTvSeriesScreenedTheatricallyEpisode(int id, int episodeNumber, int seasonNumber) Creates an instance of aTvSeriesScreenedTheatricallyEpisoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns 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.intReturns the value of theseasonNumberrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TvSeriesScreenedTheatricallyEpisode
public TvSeriesScreenedTheatricallyEpisode(int id, int episodeNumber, int seasonNumber) Creates an instance of aTvSeriesScreenedTheatricallyEpisoderecord class.- Parameters:
id- the value for theidrecord componentepisodeNumber- the value for theepisodeNumberrecord componentseasonNumber- the value for theseasonNumberrecord 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. All components in this record class are compared with '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
episodeNumber
public int episodeNumber()Returns the value of theepisodeNumberrecord component.- Returns:
- the value of the
episodeNumberrecord component
-
seasonNumber
public int seasonNumber()Returns the value of theseasonNumberrecord component.- Returns:
- the value of the
seasonNumberrecord component
-