Record Class CreditDetails
java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.credits.model.CreditDetails
- Record Components:
creditType- credit type, for examplecastorcrewdepartment- credit departmentjob- credit jobmedia- related movie or TV mediamediaType- media type, for examplemovieortvid- TMDB credit idperson- credited person
- All Implemented Interfaces:
TmdbModel,Serializable
public record CreditDetails(String creditType, String department, String job, CreditMedia media, MediaType mediaType, String id, CreditPerson person)
extends Record
implements TmdbModel
TMDB credit details.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreditDetails(String creditType, String department, String job, CreditMedia media, MediaType mediaType, String id, CreditPerson person) Creates an instance of aCreditDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreditTyperecord component.Returns the value of thedepartmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.job()Returns the value of thejobrecord component.media()Returns the value of themediarecord component.Returns the value of themediaTyperecord component.person()Returns the value of thepersonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreditDetails
public CreditDetails(String creditType, String department, String job, CreditMedia media, MediaType mediaType, String id, CreditPerson person) Creates an instance of aCreditDetailsrecord class.- Parameters:
creditType- the value for thecreditTyperecord componentdepartment- the value for thedepartmentrecord componentjob- the value for thejobrecord componentmedia- the value for themediarecord componentmediaType- the value for themediaTyperecord componentid- the value for theidrecord componentperson- the value for thepersonrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
creditType
Returns the value of thecreditTyperecord component.- Returns:
- the value of the
creditTyperecord component
-
department
Returns the value of thedepartmentrecord component.- Returns:
- the value of the
departmentrecord component
-
job
Returns the value of thejobrecord component.- Returns:
- the value of the
jobrecord component
-
media
Returns the value of themediarecord component.- Returns:
- the value of the
mediarecord component
-
mediaType
Returns the value of themediaTyperecord component.- Returns:
- the value of the
mediaTyperecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
person
Returns the value of thepersonrecord component.- Returns:
- the value of the
personrecord component
-