Package dev.reuss.tmdb.common.credit
Record Class CastCredit
java.lang.Object
java.lang.Record
dev.reuss.tmdb.common.credit.CastCredit
- Record Components:
adult- whether the person is marked as adultgender- genderid- TMDB person idknownForDepartment- known for departmentname- person nameoriginalName- original person namepopularity- popularityprofilePath- profile image pathcastId- cast id, if provided by the endpointcharacter- character namecreditId- credit idorder- cast order
- All Implemented Interfaces:
TmdbModel,Serializable
public record CastCredit(boolean adult, int gender, int id, String knownForDepartment, String name, String originalName, double popularity, String profilePath, Integer castId, String character, String creditId, Integer order)
extends Record
implements TmdbModel
Cast credit for a TMDB resource.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadult()Returns the value of theadultrecord component.castId()Returns the value of thecastIdrecord component.Returns the value of thecharacterrecord component.creditId()Returns the value of thecreditIdrecord component.final booleanIndicates whether some other object is "equal to" this one.intgender()Returns the value of thegenderrecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.Returns the value of theknownForDepartmentrecord component.name()Returns the value of thenamerecord component.order()Returns the value of theorderrecord component.Returns the value of theoriginalNamerecord component.doubleReturns the value of thepopularityrecord component.Returns the value of theprofilePathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CastCredit
public CastCredit(boolean adult, int gender, int id, String knownForDepartment, String name, String originalName, double popularity, String profilePath, Integer castId, String character, String creditId, Integer order) Creates an instance of aCastCreditrecord class.- Parameters:
adult- the value for theadultrecord componentgender- the value for thegenderrecord componentid- the value for theidrecord componentknownForDepartment- the value for theknownForDepartmentrecord componentname- the value for thenamerecord componentoriginalName- the value for theoriginalNamerecord componentpopularity- the value for thepopularityrecord componentprofilePath- the value for theprofilePathrecord componentcastId- the value for thecastIdrecord componentcharacter- the value for thecharacterrecord componentcreditId- the value for thecreditIdrecord componentorder- the value for theorderrecord 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 '=='. -
adult
public boolean adult()Returns the value of theadultrecord component.- Returns:
- the value of the
adultrecord component
-
gender
public int gender()Returns the value of thegenderrecord component.- Returns:
- the value of the
genderrecord component
-
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
knownForDepartment
Returns the value of theknownForDepartmentrecord component.- Returns:
- the value of the
knownForDepartmentrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
originalName
Returns the value of theoriginalNamerecord component.- Returns:
- the value of the
originalNamerecord component
-
popularity
public double popularity()Returns the value of thepopularityrecord component.- Returns:
- the value of the
popularityrecord component
-
profilePath
Returns the value of theprofilePathrecord component.- Returns:
- the value of the
profilePathrecord component
-
castId
Returns the value of thecastIdrecord component.- Returns:
- the value of the
castIdrecord component
-
character
Returns the value of thecharacterrecord component.- Returns:
- the value of the
characterrecord component
-
creditId
Returns the value of thecreditIdrecord component.- Returns:
- the value of the
creditIdrecord component
-
order
Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-