Record Class CreditDetails

java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.credits.model.CreditDetails
Record Components:
creditType - credit type, for example cast or crew
department - credit department
job - credit job
media - related movie or TV media
mediaType - media type, for example movie or tv
id - TMDB credit id
person - 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 Details

    • CreditDetails

      public CreditDetails(String creditType, String department, String job, CreditMedia media, MediaType mediaType, String id, CreditPerson person)
      Creates an instance of a CreditDetails record class.
      Parameters:
      creditType - the value for the creditType record component
      department - the value for the department record component
      job - the value for the job record component
      media - the value for the media record component
      mediaType - the value for the mediaType record component
      id - the value for the id record component
      person - the value for the person record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • creditType

      public String creditType()
      Returns the value of the creditType record component.
      Returns:
      the value of the creditType record component
    • department

      public String department()
      Returns the value of the department record component.
      Returns:
      the value of the department record component
    • job

      public String job()
      Returns the value of the job record component.
      Returns:
      the value of the job record component
    • media

      public CreditMedia media()
      Returns the value of the media record component.
      Returns:
      the value of the media record component
    • mediaType

      public MediaType mediaType()
      Returns the value of the mediaType record component.
      Returns:
      the value of the mediaType record component
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • person

      public CreditPerson person()
      Returns the value of the person record component.
      Returns:
      the value of the person record component