Record Class StorybookSearchResponse
java.lang.Object
java.lang.Record
inha.dayoook_e.storybook.api.controller.dto.response.StorybookSearchResponse
-
Constructor Summary
ConstructorsConstructorDescriptionStorybookSearchResponse
(@NotNull Integer id, @NotNull String title, @NotNull String description, @NotNull String thumbnailUrl, @NotNull String pageUrl, @NotNull Integer pageNumber, @NotNull String content, @NotNull Integer pageCount) Creates an instance of aStorybookSearchResponse
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull String
content()
Returns the value of thecontent
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 Integer
Returns the value of thepageCount
record component.@NotNull Integer
Returns the value of thepageNumber
record component.@NotNull String
pageUrl()
Returns the value of thepageUrl
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
-
StorybookSearchResponse
public StorybookSearchResponse(@NotNull @NotNull Integer id, @NotNull @NotNull String title, @NotNull @NotNull String description, @NotNull @NotNull String thumbnailUrl, @NotNull @NotNull String pageUrl, @NotNull @NotNull Integer pageNumber, @NotNull @NotNull String content, @NotNull @NotNull Integer pageCount) Creates an instance of aStorybookSearchResponse
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 componentpageUrl
- the value for thepageUrl
record componentpageNumber
- the value for thepageNumber
record componentcontent
- the value for thecontent
record componentpageCount
- the value for thepageCount
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
-
pageUrl
Returns the value of thepageUrl
record component.- Returns:
- the value of the
pageUrl
record component
-
pageNumber
Returns the value of thepageNumber
record component.- Returns:
- the value of the
pageNumber
record component
-
content
Returns the value of thecontent
record component.- Returns:
- the value of the
content
record component
-
pageCount
Returns the value of thepageCount
record component.- Returns:
- the value of the
pageCount
record component
-