Record Class Company
java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.companies.model.Company
- Record Components:
description- company descriptionheadquarters- company headquartershomepage- company homepage URLid- TMDB company idlogoPath- TMDB logo image pathname- company nameoriginCountry- origin country codeparentCompany- parent company information, if available
- All Implemented Interfaces:
TmdbModel,Serializable
public record Company(String description, String headquarters, String homepage, int id, String logoPath, String name, String originCountry, Object parentCompany)
extends Record
implements TmdbModel
TMDB company details.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theheadquartersrecord component.homepage()Returns the value of thehomepagerecord component.intid()Returns the value of theidrecord component.logoPath()Returns the value of thelogoPathrecord component.name()Returns the value of thenamerecord component.Returns the value of theoriginCountryrecord component.Returns the value of theparentCompanyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Company
public Company(String description, String headquarters, String homepage, int id, String logoPath, String name, String originCountry, Object parentCompany) Creates an instance of aCompanyrecord class.- Parameters:
description- the value for thedescriptionrecord componentheadquarters- the value for theheadquartersrecord componenthomepage- the value for thehomepagerecord componentid- the value for theidrecord componentlogoPath- the value for thelogoPathrecord componentname- the value for thenamerecord componentoriginCountry- the value for theoriginCountryrecord componentparentCompany- the value for theparentCompanyrecord 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 '=='. -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
headquarters
Returns the value of theheadquartersrecord component.- Returns:
- the value of the
headquartersrecord 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
-
logoPath
Returns the value of thelogoPathrecord component.- Returns:
- the value of the
logoPathrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
originCountry
Returns the value of theoriginCountryrecord component.- Returns:
- the value of the
originCountryrecord component
-
parentCompany
Returns the value of theparentCompanyrecord component.- Returns:
- the value of the
parentCompanyrecord component
-