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 aTutorSearchPageResponse
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull List<SearchAgeGroupResponse>
Returns the value of theageGroups
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 KoreanLevel
Returns the value of thekoreanLevel
record component.@NotNull List<SearchLanguagesResponse>
Returns the value of thelanguages
record component.@NotNull String
name()
Returns the value of thename
record component.Returns the value of theprofileUrl
record component.@NotNull Double
rating()
Returns the value of therating
record component.final String
toString()
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 aTutorSearchPageResponse
record class.- Parameters:
id
- the value for theid
record componentname
- the value for thename
record componentrating
- the value for therating
record componentkoreanLevel
- the value for thekoreanLevel
record componentprofileUrl
- the value for theprofileUrl
record componentageGroups
- the value for theageGroups
record componentlanguages
- the value for thelanguages
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
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
rating
Returns the value of therating
record component.- Returns:
- the value of the
rating
record component
-
koreanLevel
Returns the value of thekoreanLevel
record component.- Returns:
- the value of the
koreanLevel
record component
-
profileUrl
Returns the value of theprofileUrl
record component.- Returns:
- the value of the
profileUrl
record component
-
ageGroups
Returns the value of theageGroups
record component.- Returns:
- the value of the
ageGroups
record component
-
languages
Returns the value of thelanguages
record component.- Returns:
- the value of the
languages
record component
-