Record Class MovieReleaseDate

java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.movie.model.MovieReleaseDate
Record Components:
certification - certification
descriptors - certification descriptors
iso6391 - ISO 639-1 language code
note - release note
releaseDate - release timestamp
type - release type
All Implemented Interfaces:
TmdbModel, Serializable

public record MovieReleaseDate(String certification, List<String> descriptors, String iso6391, String note, String releaseDate, int type) extends Record implements TmdbModel
Release date entry for a movie.
See Also:
  • Constructor Details

    • MovieReleaseDate

      public MovieReleaseDate(String certification, List<String> descriptors, String iso6391, String note, String releaseDate, int type)
      Creates an instance of a MovieReleaseDate record class.
      Parameters:
      certification - the value for the certification record component
      descriptors - the value for the descriptors record component
      iso6391 - the value for the iso6391 record component
      note - the value for the note record component
      releaseDate - the value for the releaseDate record component
      type - the value for the type record component
  • Method Details

    • releaseType

      public MovieReleaseType releaseType()
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • certification

      public String certification()
      Returns the value of the certification record component.
      Returns:
      the value of the certification record component
    • descriptors

      public List<String> descriptors()
      Returns the value of the descriptors record component.
      Returns:
      the value of the descriptors record component
    • iso6391

      public String iso6391()
      Returns the value of the iso6391 record component.
      Returns:
      the value of the iso6391 record component
    • note

      public String note()
      Returns the value of the note record component.
      Returns:
      the value of the note record component
    • releaseDate

      public String releaseDate()
      Returns the value of the releaseDate record component.
      Returns:
      the value of the releaseDate record component
    • type

      public int type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component