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 aTutorSearchResponserecord 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.@NotNull List<SearchExperienceResponse>Returns the value of theexperiencesrecord component.final inthashCode()Returns a hash code value for this object.@NotNull Integerid()Returns the value of theidrecord component.@NotNull StringReturns the value of theintroductionrecord 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.@NotNull StringReturns the value of theoccupationrecord component.Returns the value of theprofileUrlrecord component.@NotNull Doublerating()Returns the value of theratingrecord component.schedule()Returns the value of theschedulerecord component.final StringtoString()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 aTutorSearchResponserecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentoccupation- the value for theoccupationrecord componentintroduction- the value for theintroductionrecord 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 componentexperiences- the value for theexperiencesrecord componentschedule- the value for theschedulerecord 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
-
occupation
Returns the value of theoccupationrecord component.- Returns:
- the value of the
occupationrecord component
-
introduction
Returns the value of theintroductionrecord component.- Returns:
- the value of the
introductionrecord 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
-
experiences
Returns the value of theexperiencesrecord component.- Returns:
- the value of the
experiencesrecord component
-
schedule
Returns the value of theschedulerecord component.- Returns:
- the value of the
schedulerecord component
-