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 aCreateSongRequest
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Integer
Returns the value of thecountryId
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 String
lyrics()
Returns the value of thelyrics
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
-
CreateSongRequest
public CreateSongRequest(@NotNull @NotNull String title, @NotNull @NotNull String description, @NotNull @NotNull String lyrics, @NotNull @NotNull Integer countryId) Creates an instance of aCreateSongRequest
record class.- Parameters:
title
- the value for thetitle
record componentdescription
- the value for thedescription
record componentlyrics
- the value for thelyrics
record componentcountryId
- the value for thecountryId
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)
. -
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
-
lyrics
Returns the value of thelyrics
record component.- Returns:
- the value of the
lyrics
record component
-
countryId
Returns the value of thecountryId
record component.- Returns:
- the value of the
countryId
record component
-