Record Class TvSeasonAggregateCrewJob
java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.tv.season.model.TvSeasonAggregateCrewJob
- Record Components:
creditId- credit idjob- jobepisodeCount- episode count
- All Implemented Interfaces:
TmdbModel,Serializable
public record TvSeasonAggregateCrewJob(String creditId, String job, int episodeCount)
extends Record
implements TmdbModel
Aggregate crew job for a TV season.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTvSeasonAggregateCrewJob(String creditId, String job, int episodeCount) Creates an instance of aTvSeasonAggregateCrewJobrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreditId()Returns the value of thecreditIdrecord 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.job()Returns the value of thejobrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TvSeasonAggregateCrewJob
Creates an instance of aTvSeasonAggregateCrewJobrecord class.- Parameters:
creditId- the value for thecreditIdrecord componentjob- the value for thejobrecord componentepisodeCount- the value for theepisodeCountrecord 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 '=='. -
creditId
Returns the value of thecreditIdrecord component.- Returns:
- the value of the
creditIdrecord component
-
job
Returns the value of thejobrecord component.- Returns:
- the value of the
jobrecord component
-
episodeCount
public int episodeCount()Returns the value of theepisodeCountrecord component.- Returns:
- the value of the
episodeCountrecord component
-