Record Class TutorSearchPageResponse
java.lang.Object
java.lang.Record
inha.dayoook_e.tutor.api.controller.dto.response.TutorSearchPageResponse
public record TutorSearchPageResponse(@NotNull Integer id, @NotNull String name, @NotNull Double rating, @NotNull KoreanLevel koreanLevel, String profileUrl, @NotNull List<SearchAgeGroupResponse> ageGroups, @NotNull List<SearchLanguagesResponse> languages)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTutorSearchPageResponse(@NotNull Integer id, @NotNull String name, @NotNull Double rating, @NotNull KoreanLevel koreanLevel, String profileUrl, @NotNull List<SearchAgeGroupResponse> ageGroups, @NotNull List<SearchLanguagesResponse> languages) Creates an instance of aTutorSearchPageResponserecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull List<SearchAgeGroupResponse>Returns the value of theageGroupsrecord 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 KoreanLevelReturns the value of thekoreanLevelrecord component.@NotNull List<SearchLanguagesResponse>Returns the value of thelanguagesrecord component.@NotNull Stringname()Returns the value of thenamerecord component.Returns the value of theprofileUrlrecord component.@NotNull Doublerating()Returns the value of theratingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TutorSearchPageResponse
public TutorSearchPageResponse(@NotNull @NotNull Integer id, @NotNull @NotNull String name, @NotNull @NotNull Double rating, @NotNull @NotNull KoreanLevel koreanLevel, String profileUrl, @NotNull @NotNull List<SearchAgeGroupResponse> ageGroups, @NotNull @NotNull List<SearchLanguagesResponse> languages) Creates an instance of aTutorSearchPageResponserecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentrating- the value for theratingrecord componentkoreanLevel- the value for thekoreanLevelrecord componentprofileUrl- the value for theprofileUrlrecord componentageGroups- the value for theageGroupsrecord componentlanguages- the value for thelanguagesrecord 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
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
rating
Returns the value of theratingrecord component.- Returns:
- the value of the
ratingrecord component
-
koreanLevel
Returns the value of thekoreanLevelrecord component.- Returns:
- the value of the
koreanLevelrecord component
-
profileUrl
Returns the value of theprofileUrlrecord component.- Returns:
- the value of the
profileUrlrecord component
-
ageGroups
Returns the value of theageGroupsrecord component.- Returns:
- the value of the
ageGroupsrecord component
-
languages
Returns the value of thelanguagesrecord component.- Returns:
- the value of the
languagesrecord component
-