Record Class MovieReleaseDate
java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.movie.model.MovieReleaseDate
- Record Components:
certification- certificationdescriptors- certification descriptorsiso6391- ISO 639-1 language codenote- release notereleaseDate- release timestamptype- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecertificationrecord component.Returns the value of thedescriptorsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.iso6391()Returns the value of theiso6391record component.note()Returns the value of thenoterecord component.Returns the value of thereleaseDaterecord component.final StringtoString()Returns a string representation of this record class.inttype()Returns the value of thetyperecord component.
-
Constructor Details
-
MovieReleaseDate
public MovieReleaseDate(String certification, List<String> descriptors, String iso6391, String note, String releaseDate, int type) Creates an instance of aMovieReleaseDaterecord class.- Parameters:
certification- the value for thecertificationrecord componentdescriptors- the value for thedescriptorsrecord componentiso6391- the value for theiso6391record componentnote- the value for thenoterecord componentreleaseDate- the value for thereleaseDaterecord componenttype- the value for thetyperecord component
-
-
Method Details
-
releaseType
-
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 '=='. -
certification
Returns the value of thecertificationrecord component.- Returns:
- the value of the
certificationrecord component
-
descriptors
Returns the value of thedescriptorsrecord component.- Returns:
- the value of the
descriptorsrecord component
-
iso6391
Returns the value of theiso6391record component.- Returns:
- the value of the
iso6391record component
-
note
Returns the value of thenoterecord component.- Returns:
- the value of the
noterecord component
-
releaseDate
Returns the value of thereleaseDaterecord component.- Returns:
- the value of the
releaseDaterecord component
-
type
public int type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-