Record Class VideoData
java.lang.Object
java.lang.Record
net.ygbstudio.jbrave.core.domain.dto.result.VideoData
- Record Components:
duration- the duration of the videoviews- the number of views of the videocreator- the creator of the videopublisher- the publisher of the videothumbnail- the thumbnail of the video- the tags associated with the video- the author profile of the videorequiresSubscription- a boolean indicating whether the video requires subscription
public record VideoData(String duration, String views, String creator, String publisher, Thumbnail thumbnail, List<String> tags, Profile author, Boolean requiresSubscription)
extends Record
Represents video data in search results. This record provides more specific and structured
metadata about videos. It includes parameters such as duration, views, creator, publisher,
thumbnail, tags, author, and requiresSubscription.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.creator()Returns the value of thecreatorrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepublisherrecord component.Returns the value of therequiresSubscriptionrecord component.tags()Returns the value of thetagsrecord component.Returns the value of thethumbnailrecord component.final StringtoString()Returns a string representation of this record class.views()Returns the value of theviewsrecord component.
-
Constructor Details
-
VideoData
public VideoData(String duration, String views, String creator, String publisher, Thumbnail thumbnail, List<String> tags, Profile author, Boolean requiresSubscription) Creates an instance of aVideoDatarecord class.- Parameters:
duration- the value for thedurationrecord componentviews- the value for theviewsrecord componentcreator- the value for thecreatorrecord componentpublisher- the value for thepublisherrecord componentthumbnail- the value for thethumbnailrecord componenttags- the value for thetagsrecord componentauthor- the value for theauthorrecord componentrequiresSubscription- the value for therequiresSubscriptionrecord 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). -
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
views
Returns the value of theviewsrecord component.- Returns:
- the value of the
viewsrecord component
-
creator
Returns the value of thecreatorrecord component.- Returns:
- the value of the
creatorrecord component
-
publisher
Returns the value of thepublisherrecord component.- Returns:
- the value of the
publisherrecord component
-
thumbnail
Returns the value of thethumbnailrecord component.- Returns:
- the value of the
thumbnailrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
requiresSubscription
Returns the value of therequiresSubscriptionrecord component.- Returns:
- the value of the
requiresSubscriptionrecord component
-