Record Class Review
java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.reviews.model.Review
- Record Components:
id- TMDB review id- review author name- review author detailscontent- review contentcreatedAt- creation timestampiso6391- ISO 639-1 language codemediaId- related movie or TV show idmediaTitle- related movie or TV show titlemediaType- related media type, for examplemovieortvupdatedAt- update timestampurl- TMDB review URL
- All Implemented Interfaces:
TmdbModel,Serializable
public record Review(String id, String author, ReviewAuthorDetails authorDetails, String content, String createdAt, String iso6391, int mediaId, MediaType mediaTitle, MediaType mediaType, String updatedAt, String url)
extends Record
implements TmdbModel
TMDB review details.
- 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.iso6391()Returns the value of theiso6391record component.intmediaId()Returns the value of themediaIdrecord component.Returns the value of themediaTitlerecord component.Returns the value of themediaTyperecord 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 id, String author, ReviewAuthorDetails authorDetails, String content, String createdAt, String iso6391, int mediaId, MediaType mediaTitle, MediaType mediaType, String updatedAt, String url) Creates an instance of aReviewrecord class.- Parameters:
id- the value for theidrecord componentauthor- the value for theauthorrecord componentauthorDetails- the value for theauthorDetailsrecord componentcontent- the value for thecontentrecord componentcreatedAt- the value for thecreatedAtrecord componentiso6391- the value for theiso6391record componentmediaId- the value for themediaIdrecord componentmediaTitle- the value for themediaTitlerecord componentmediaType- the value for themediaTyperecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
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
-
iso6391
Returns the value of theiso6391record component.- Returns:
- the value of the
iso6391record component
-
mediaId
public int mediaId()Returns the value of themediaIdrecord component.- Returns:
- the value of the
mediaIdrecord component
-
mediaTitle
Returns the value of themediaTitlerecord component.- Returns:
- the value of the
mediaTitlerecord component
-
mediaType
Returns the value of themediaTyperecord component.- Returns:
- the value of the
mediaTyperecord 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
-