Record Class MovieVideo
java.lang.Object
java.lang.Record
dev.reuss.tmdb.domain.movie.model.MovieVideo
- Record Components:
iso6391- ISO 639-1 language codeiso31661- ISO 3166-1 region codename- video namekey- video key, for example the YouTube video idsite- video provider sitesize- video sizetype- video typeofficial- whether the video is officialpublishedAt- publish timestampid- TMDB video id
- All Implemented Interfaces:
TmdbModel,Serializable
public record MovieVideo(String iso6391, String iso31661, String name, String key, String site, int size, String type, boolean official, String publishedAt, String id)
extends Record
implements TmdbModel
Video for a TMDB movie.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.iso31661()Returns the value of theiso31661record component.iso6391()Returns the value of theiso6391record component.key()Returns the value of thekeyrecord component.name()Returns the value of thenamerecord component.booleanofficial()Returns the value of theofficialrecord component.Returns the value of thepublishedAtrecord component.site()Returns the value of thesiterecord component.intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
MovieVideo
public MovieVideo(String iso6391, String iso31661, String name, String key, String site, int size, String type, boolean official, String publishedAt, String id) Creates an instance of aMovieVideorecord class.- Parameters:
iso6391- the value for theiso6391record componentiso31661- the value for theiso31661record componentname- the value for thenamerecord componentkey- the value for thekeyrecord componentsite- the value for thesiterecord componentsize- the value for thesizerecord componenttype- the value for thetyperecord componentofficial- the value for theofficialrecord componentpublishedAt- the value for thepublishedAtrecord componentid- the value for theidrecord 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 '=='. -
iso6391
Returns the value of theiso6391record component.- Returns:
- the value of the
iso6391record component
-
iso31661
Returns the value of theiso31661record component.- Returns:
- the value of the
iso31661record component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
site
Returns the value of thesiterecord component.- Returns:
- the value of the
siterecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
official
public boolean official()Returns the value of theofficialrecord component.- Returns:
- the value of the
officialrecord component
-
publishedAt
Returns the value of thepublishedAtrecord component.- Returns:
- the value of the
publishedAtrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-