Record Class TrendingPerson
java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.trending.model.TrendingPerson
- Record Components:
adult- whether the person is marked as adultid- TMDB person idname- person nameoriginalName- original person namemediaType- media type, usuallypersonpopularity- person popularitygender- gender value returned by TMDBknownForDepartment- known departmentprofilePath- profile image pathknownFor- known movie or TV results
- All Implemented Interfaces:
TmdbModel,Serializable
public record TrendingPerson(boolean adult, int id, String name, String originalName, MediaType mediaType, double popularity, int gender, String knownForDepartment, String profilePath, List<TrendingPersonKnownFor> knownFor)
extends Record
implements TmdbModel
Person returned by TMDB people trending.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTrendingPerson(boolean adult, int id, String name, String originalName, MediaType mediaType, double popularity, int gender, String knownForDepartment, String profilePath, List<TrendingPersonKnownFor> knownFor) Creates an instance of aTrendingPersonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanadult()Returns the value of theadultrecord 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.knownFor()Returns the value of theknownForrecord component.Returns the value of theknownForDepartmentrecord component.Returns the value of themediaTyperecord component.name()Returns the value of thenamerecord 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
-
TrendingPerson
public TrendingPerson(boolean adult, int id, String name, String originalName, MediaType mediaType, double popularity, int gender, String knownForDepartment, String profilePath, List<TrendingPersonKnownFor> knownFor) Creates an instance of aTrendingPersonrecord class.- Parameters:
adult- the value for theadultrecord componentid- the value for theidrecord componentname- the value for thenamerecord componentoriginalName- the value for theoriginalNamerecord componentmediaType- the value for themediaTyperecord componentpopularity- the value for thepopularityrecord componentgender- the value for thegenderrecord componentknownForDepartment- the value for theknownForDepartmentrecord componentprofilePath- the value for theprofilePathrecord componentknownFor- the value for theknownForrecord 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
-
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord 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
-
mediaType
Returns the value of themediaTyperecord component.- Returns:
- the value of the
mediaTyperecord component
-
popularity
public double popularity()Returns the value of thepopularityrecord component.- Returns:
- the value of the
popularityrecord component
-
gender
public int gender()Returns the value of thegenderrecord component.- Returns:
- the value of the
genderrecord component
-
knownForDepartment
Returns the value of theknownForDepartmentrecord component.- Returns:
- the value of the
knownForDepartmentrecord component
-
profilePath
Returns the value of theprofilePathrecord component.- Returns:
- the value of the
profilePathrecord component
-
knownFor
Returns the value of theknownForrecord component.- Returns:
- the value of the
knownForrecord component
-