Record Class PersonDetails
java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.people.model.PersonDetails
- Record Components:
adult- whether the person is marked as adultalsoKnownAs- alternative namesbiography- person biographybirthday- birthdaydeathday- deathdaygender- gender value returned by TMDBhomepage- homepage URLid- TMDB person idimdbId- IMDb idknownForDepartment- known departmentname- person nameplaceOfBirth- place of birthpopularity- person popularityprofilePath- profile image pathchanges- appended changescombinedCredits- appended combined creditsexternalIds- appended external idsimages- appended imagesmovieCredits- appended movie creditstvCredits- appended TV creditstranslations- appended translations
- All Implemented Interfaces:
TmdbModel,Serializable
public record PersonDetails(boolean adult, List<String> alsoKnownAs, String biography, String birthday, String deathday, int gender, String homepage, int id, String imdbId, String knownForDepartment, String name, String placeOfBirth, double popularity, String profilePath, PersonChanges changes, PersonCombinedCredits combinedCredits, ExternalIds externalIds, PersonImages images, PersonMovieCredits movieCredits, PersonTvCredits tvCredits, PersonTranslations translations)
extends Record
implements TmdbModel
Top level TMDB person details.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPersonDetails(boolean adult, List<String> alsoKnownAs, String biography, String birthday, String deathday, int gender, String homepage, int id, String imdbId, String knownForDepartment, String name, String placeOfBirth, double popularity, String profilePath, PersonChanges changes, PersonCombinedCredits combinedCredits, ExternalIds externalIds, PersonImages images, PersonMovieCredits movieCredits, PersonTvCredits tvCredits, PersonTranslations translations) Creates an instance of aPersonDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanadult()Returns the value of theadultrecord component.Returns the value of thealsoKnownAsrecord component.Returns the value of thebiographyrecord component.birthday()Returns the value of thebirthdayrecord component.changes()Returns the value of thechangesrecord component.Returns the value of thecombinedCreditsrecord component.deathday()Returns the value of thedeathdayrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalIdsrecord component.intgender()Returns the value of thegenderrecord component.final inthashCode()Returns a hash code value for this object.homepage()Returns the value of thehomepagerecord component.intid()Returns the value of theidrecord component.images()Returns the value of theimagesrecord component.imdbId()Returns the value of theimdbIdrecord component.Returns the value of theknownForDepartmentrecord component.Returns the value of themovieCreditsrecord component.name()Returns the value of thenamerecord component.Returns the value of theplaceOfBirthrecord component.doubleReturns the value of thepopularityrecord component.Returns the value of theprofilePathrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetranslationsrecord component.Returns the value of thetvCreditsrecord component.
-
Constructor Details
-
PersonDetails
public PersonDetails(boolean adult, List<String> alsoKnownAs, String biography, String birthday, String deathday, int gender, String homepage, int id, String imdbId, String knownForDepartment, String name, String placeOfBirth, double popularity, String profilePath, PersonChanges changes, PersonCombinedCredits combinedCredits, ExternalIds externalIds, PersonImages images, PersonMovieCredits movieCredits, PersonTvCredits tvCredits, PersonTranslations translations) Creates an instance of aPersonDetailsrecord class.- Parameters:
adult- the value for theadultrecord componentalsoKnownAs- the value for thealsoKnownAsrecord componentbiography- the value for thebiographyrecord componentbirthday- the value for thebirthdayrecord componentdeathday- the value for thedeathdayrecord componentgender- the value for thegenderrecord componenthomepage- the value for thehomepagerecord componentid- the value for theidrecord componentimdbId- the value for theimdbIdrecord componentknownForDepartment- the value for theknownForDepartmentrecord componentname- the value for thenamerecord componentplaceOfBirth- the value for theplaceOfBirthrecord componentpopularity- the value for thepopularityrecord componentprofilePath- the value for theprofilePathrecord componentchanges- the value for thechangesrecord componentcombinedCredits- the value for thecombinedCreditsrecord componentexternalIds- the value for theexternalIdsrecord componentimages- the value for theimagesrecord componentmovieCredits- the value for themovieCreditsrecord componenttvCredits- the value for thetvCreditsrecord componenttranslations- the value for thetranslationsrecord 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
-
alsoKnownAs
Returns the value of thealsoKnownAsrecord component.- Returns:
- the value of the
alsoKnownAsrecord component
-
biography
Returns the value of thebiographyrecord component.- Returns:
- the value of the
biographyrecord component
-
birthday
Returns the value of thebirthdayrecord component.- Returns:
- the value of the
birthdayrecord component
-
deathday
Returns the value of thedeathdayrecord component.- Returns:
- the value of the
deathdayrecord component
-
gender
public int gender()Returns the value of thegenderrecord component.- Returns:
- the value of the
genderrecord component
-
homepage
Returns the value of thehomepagerecord component.- Returns:
- the value of the
homepagerecord component
-
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
imdbId
Returns the value of theimdbIdrecord component.- Returns:
- the value of the
imdbIdrecord 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
-
placeOfBirth
Returns the value of theplaceOfBirthrecord component.- Returns:
- the value of the
placeOfBirthrecord 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
-
changes
Returns the value of thechangesrecord component.- Returns:
- the value of the
changesrecord component
-
combinedCredits
Returns the value of thecombinedCreditsrecord component.- Returns:
- the value of the
combinedCreditsrecord component
-
externalIds
Returns the value of theexternalIdsrecord component.- Returns:
- the value of the
externalIdsrecord component
-
images
Returns the value of theimagesrecord component.- Returns:
- the value of the
imagesrecord component
-
movieCredits
Returns the value of themovieCreditsrecord component.- Returns:
- the value of the
movieCreditsrecord component
-
tvCredits
Returns the value of thetvCreditsrecord component.- Returns:
- the value of the
tvCreditsrecord component
-
translations
Returns the value of thetranslationsrecord component.- Returns:
- the value of the
translationsrecord component
-