Record Class Review

java.lang.Object
java.lang.Record
dev.reuss.tmdb.common.review.Review
Record Components:
author - review author
authorDetails - review author details
content - review content
createdAt - creation timestamp
id - review id
updatedAt - update timestamp
url - review URL
All Implemented Interfaces:
TmdbModel, Serializable

public record Review(String author, ReviewAuthorDetails authorDetails, String content, String createdAt, String id, String updatedAt, String url) extends Record implements TmdbModel
Review item for a TMDB resource.
See Also:
  • Constructor Details

    • Review

      public Review(String author, ReviewAuthorDetails authorDetails, String content, String createdAt, String id, String updatedAt, String url)
      Creates an instance of a Review record class.
      Parameters:
      author - the value for the author record component
      authorDetails - the value for the authorDetails record component
      content - the value for the content record component
      createdAt - the value for the createdAt record component
      id - the value for the id record component
      updatedAt - the value for the updatedAt record component
      url - the value for the url 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.
    • author

      public String author()
      Returns the value of the author record component.
      Returns:
      the value of the author record component
    • authorDetails

      public ReviewAuthorDetails authorDetails()
      Returns the value of the authorDetails record component.
      Returns:
      the value of the authorDetails record component
    • content

      public String content()
      Returns the value of the content record component.
      Returns:
      the value of the content record component
    • createdAt

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

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

      public String updatedAt()
      Returns the value of the updatedAt record component.
      Returns:
      the value of the updatedAt record component
    • url

      public String url()
      Returns the value of the url record component.
      Returns:
      the value of the url record component