Record Class TvSeasonAggregateCastRole
java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.tv.season.model.TvSeasonAggregateCastRole
- Record Components:
creditId- credit idcharacter- character nameepisodeCount- episode count
- All Implemented Interfaces:
TmdbModel,Serializable
public record TvSeasonAggregateCastRole(String creditId, String character, int episodeCount)
extends Record
implements TmdbModel
Aggregate cast role for a TV season.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTvSeasonAggregateCastRole(String creditId, String character, int episodeCount) Creates an instance of aTvSeasonAggregateCastRolerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecharacterrecord component.creditId()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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TvSeasonAggregateCastRole
Creates an instance of aTvSeasonAggregateCastRolerecord class.- Parameters:
creditId- the value for thecreditIdrecord componentcharacter- the value for thecharacterrecord 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
-
character
Returns the value of thecharacterrecord component.- Returns:
- the value of the
characterrecord component
-
episodeCount
public int episodeCount()Returns the value of theepisodeCountrecord component.- Returns:
- the value of the
episodeCountrecord component
-