Record Class VideoSuggestion
java.lang.Object
java.lang.Record
com.serinity.exercicecontrol.model.api.VideoSuggestion
-
Constructor Summary
ConstructorsConstructorDescriptionVideoSuggestion(String videoId, String title, String channelTitle, String thumbnailUrl, int durationSeconds) Creates an instance of aVideoSuggestionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechannelTitlerecord component.intReturns the value of thedurationSecondsrecord 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 thethumbnailUrlrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.videoId()Returns the value of thevideoIdrecord component.
-
Constructor Details
-
VideoSuggestion
public VideoSuggestion(String videoId, String title, String channelTitle, String thumbnailUrl, int durationSeconds) Creates an instance of aVideoSuggestionrecord class.- Parameters:
videoId- the value for thevideoIdrecord componenttitle- the value for thetitlerecord componentchannelTitle- the value for thechannelTitlerecord componentthumbnailUrl- the value for thethumbnailUrlrecord componentdurationSeconds- the value for thedurationSecondsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
videoId
Returns the value of thevideoIdrecord component.- Returns:
- the value of the
videoIdrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
channelTitle
Returns the value of thechannelTitlerecord component.- Returns:
- the value of the
channelTitlerecord component
-
thumbnailUrl
Returns the value of thethumbnailUrlrecord component.- Returns:
- the value of the
thumbnailUrlrecord component
-
durationSeconds
public int durationSeconds()Returns the value of thedurationSecondsrecord component.- Returns:
- the value of the
durationSecondsrecord component
-