Record Class TvEpisodeCredits
java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.tv.episode.model.TvEpisodeCredits
- Record Components:
cast- episode cast creditscrew- episode crew creditsguestStars- episode guest starsid- TMDB episode id
- All Implemented Interfaces:
CreditsResponse<CastCredit,,CrewCredit> TmdbModel,Serializable
public record TvEpisodeCredits(int id, List<CrewCredit> crew, List<CastCredit> cast, List<GuestStarCredit> guestStars)
extends Record
implements CreditsResponse<CastCredit,CrewCredit>, TmdbModel
Credits for a TMDB TV episode.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTvEpisodeCredits(int id, List<CrewCredit> crew, List<CastCredit> cast, List<GuestStarCredit> guestStars) Creates an instance of aTvEpisodeCreditsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncast()Returns the value of thecastrecord component.crew()Returns the value of thecrewrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theguestStarsrecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.reuss.tmdb.common.credit.CreditsResponse
castCount, creditCount, crewCount, hasCast, hasCredits, hasCrew, isEmpty
-
Constructor Details
-
TvEpisodeCredits
public TvEpisodeCredits(int id, List<CrewCredit> crew, List<CastCredit> cast, List<GuestStarCredit> guestStars) Creates an instance of aTvEpisodeCreditsrecord class.- Parameters:
id- the value for theidrecord componentcrew- the value for thecrewrecord componentcast- the value for thecastrecord componentguestStars- the value for theguestStarsrecord 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 '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
crew
Returns the value of thecrewrecord component.- Specified by:
crewin interfaceCreditsResponse<CastCredit,CrewCredit> - Returns:
- the value of the
crewrecord component
-
cast
Returns the value of thecastrecord component.- Specified by:
castin interfaceCreditsResponse<CastCredit,CrewCredit> - Returns:
- the value of the
castrecord component
-
guestStars
Returns the value of theguestStarsrecord component.- Returns:
- the value of the
guestStarsrecord component
-