Record Class SongSearchResponse
java.lang.Object
java.lang.Record
inha.dayoook_e.song.api.controller.dto.response.SongSearchResponse
-
Constructor Summary
ConstructorsConstructorDescriptionSongSearchResponse
(@NotNull Integer id, @NotNull String title, @NotNull String description, @NotNull String thumbnailUrl, @NotNull String mediaUrl, @NotNull String lyrics, SearchCountryResponse country, @NotNull Boolean liked, @NotNull Boolean isCompleted) Creates an instance of aSongSearchResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptioncountry()
Returns the value of thecountry
record component.@NotNull String
Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull Integer
id()
Returns the value of theid
record component.@NotNull Boolean
Returns the value of theisCompleted
record component.@NotNull Boolean
liked()
Returns the value of theliked
record component.@NotNull String
lyrics()
Returns the value of thelyrics
record component.@NotNull String
mediaUrl()
Returns the value of themediaUrl
record component.@NotNull String
Returns the value of thethumbnailUrl
record component.@NotNull String
title()
Returns the value of thetitle
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SongSearchResponse
public SongSearchResponse(@NotNull @NotNull Integer id, @NotNull @NotNull String title, @NotNull @NotNull String description, @NotNull @NotNull String thumbnailUrl, @NotNull @NotNull String mediaUrl, @NotNull @NotNull String lyrics, SearchCountryResponse country, @NotNull @NotNull Boolean liked, @NotNull @NotNull Boolean isCompleted) Creates an instance of aSongSearchResponse
record class.- Parameters:
id
- the value for theid
record componenttitle
- the value for thetitle
record componentdescription
- the value for thedescription
record componentthumbnailUrl
- the value for thethumbnailUrl
record componentmediaUrl
- the value for themediaUrl
record componentlyrics
- the value for thelyrics
record componentcountry
- the value for thecountry
record componentliked
- the value for theliked
record componentisCompleted
- the value for theisCompleted
record 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)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
thumbnailUrl
Returns the value of thethumbnailUrl
record component.- Returns:
- the value of the
thumbnailUrl
record component
-
mediaUrl
Returns the value of themediaUrl
record component.- Returns:
- the value of the
mediaUrl
record component
-
lyrics
Returns the value of thelyrics
record component.- Returns:
- the value of the
lyrics
record component
-
country
Returns the value of thecountry
record component.- Returns:
- the value of the
country
record component
-
liked
Returns the value of theliked
record component.- Returns:
- the value of the
liked
record component
-
isCompleted
Returns the value of theisCompleted
record component.- Returns:
- the value of the
isCompleted
record component
-