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 aStorybookSearchResponserecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringcontent()Returns the value of thecontentrecord 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 Integerid()Returns the value of theidrecord component.@NotNull IntegerReturns the value of thepageCountrecord component.@NotNull IntegerReturns the value of thepageNumberrecord component.@NotNull StringpageUrl()Returns the value of thepageUrlrecord component.@NotNull StringReturns the value of thethumbnailUrlrecord component.@NotNull Stringtitle()Returns the value of thetitlerecord component.final StringtoString()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 aStorybookSearchResponserecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentthumbnailUrl- the value for thethumbnailUrlrecord componentpageUrl- the value for thepageUrlrecord componentpageNumber- the value for thepageNumberrecord componentcontent- the value for thecontentrecord componentpageCount- the value for thepageCountrecord 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 theidrecord component.- Returns:
- the value of the
idrecord component
-
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
-
thumbnailUrl
Returns the value of thethumbnailUrlrecord component.- Returns:
- the value of the
thumbnailUrlrecord component
-
pageUrl
Returns the value of thepageUrlrecord component.- Returns:
- the value of the
pageUrlrecord component
-
pageNumber
Returns the value of thepageNumberrecord component.- Returns:
- the value of the
pageNumberrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
pageCount
Returns the value of thepageCountrecord component.- Returns:
- the value of the
pageCountrecord component
-