Package dev.reuss.tmdb.common.review
Record Class Review
java.lang.Object
java.lang.Record
dev.reuss.tmdb.common.review.Review
- Record Components:
- review author- review author detailscontent- review contentcreatedAt- creation timestampid- review idupdatedAt- update timestampurl- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.Returns the value of theauthorDetailsrecord component.content()Returns the value of thecontentrecord component.Returns the value of thecreatedAtrecord 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.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.url()Returns the value of theurlrecord component.
-
Constructor Details
-
Review
public Review(String author, ReviewAuthorDetails authorDetails, String content, String createdAt, String id, String updatedAt, String url) Creates an instance of aReviewrecord class.- Parameters:
author- the value for theauthorrecord componentauthorDetails- the value for theauthorDetailsrecord componentcontent- the value for thecontentrecord componentcreatedAt- the value for thecreatedAtrecord componentid- the value for theidrecord componentupdatedAt- the value for theupdatedAtrecord componenturl- the value for theurlrecord 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). -
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
authorDetails
Returns the value of theauthorDetailsrecord component.- Returns:
- the value of the
authorDetailsrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-