Record Class TutorSearchResponse
java.lang.Object
java.lang.Record
inha.dayoook_e.tutor.api.controller.dto.response.TutorSearchResponse
public record TutorSearchResponse(@NotNull Integer id, @NotNull String name, @NotNull String occupation, @NotNull String introduction, @NotNull Double rating, @NotNull KoreanLevel koreanLevel, String profileUrl, @NotNull List<SearchAgeGroupResponse> ageGroups, @NotNull List<SearchLanguagesResponse> languages, @NotNull List<SearchExperienceResponse> experiences, List<ScheduleTimeSlot> schedule)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTutorSearchResponse
(@NotNull Integer id, @NotNull String name, @NotNull String occupation, @NotNull String introduction, @NotNull Double rating, @NotNull KoreanLevel koreanLevel, String profileUrl, @NotNull List<SearchAgeGroupResponse> ageGroups, @NotNull List<SearchLanguagesResponse> languages, @NotNull List<SearchExperienceResponse> experiences, List<ScheduleTimeSlot> schedule) Creates an instance of aTutorSearchResponse
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.@NotNull List<SearchExperienceResponse>
Returns the value of theexperiences
record component.final int
hashCode()
Returns a hash code value for this object.@NotNull Integer
id()
Returns the value of theid
record component.@NotNull String
Returns the value of theintroduction
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.@NotNull String
Returns the value of theoccupation
record component.Returns the value of theprofileUrl
record component.@NotNull Double
rating()
Returns the value of therating
record component.schedule()
Returns the value of theschedule
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TutorSearchResponse
public TutorSearchResponse(@NotNull @NotNull Integer id, @NotNull @NotNull String name, @NotNull @NotNull String occupation, @NotNull @NotNull String introduction, @NotNull @NotNull Double rating, @NotNull @NotNull KoreanLevel koreanLevel, String profileUrl, @NotNull @NotNull List<SearchAgeGroupResponse> ageGroups, @NotNull @NotNull List<SearchLanguagesResponse> languages, @NotNull @NotNull List<SearchExperienceResponse> experiences, List<ScheduleTimeSlot> schedule) Creates an instance of aTutorSearchResponse
record class.- Parameters:
id
- the value for theid
record componentname
- the value for thename
record componentoccupation
- the value for theoccupation
record componentintroduction
- the value for theintroduction
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 componentexperiences
- the value for theexperiences
record componentschedule
- the value for theschedule
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
-
occupation
Returns the value of theoccupation
record component.- Returns:
- the value of the
occupation
record component
-
introduction
Returns the value of theintroduction
record component.- Returns:
- the value of the
introduction
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
-
experiences
Returns the value of theexperiences
record component.- Returns:
- the value of the
experiences
record component
-
schedule
Returns the value of theschedule
record component.- Returns:
- the value of the
schedule
record component
-