Record Class CreateSongRequest
java.lang.Object
java.lang.Record
inha.dayoook_e.song.api.controller.dto.request.CreateSongRequest
-
Constructor Summary
ConstructorsConstructorDescriptionCreateSongRequest(@NotNull String title, @NotNull String description, @NotNull String lyrics, @NotNull Integer countryId) Creates an instance of aCreateSongRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull IntegerReturns the value of thecountryIdrecord component.@NotNull StringReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Stringlyrics()Returns the value of thelyricsrecord component.@NotNull Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateSongRequest
public CreateSongRequest(@NotNull @NotNull String title, @NotNull @NotNull String description, @NotNull @NotNull String lyrics, @NotNull @NotNull Integer countryId) Creates an instance of aCreateSongRequestrecord class.- Parameters:
title- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentlyrics- the value for thelyricsrecord componentcountryId- the value for thecountryIdrecord 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). -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
lyrics
Returns the value of thelyricsrecord component.- Returns:
- the value of the
lyricsrecord component
-
countryId
Returns the value of thecountryIdrecord component.- Returns:
- the value of the
countryIdrecord component
-