Record Class SearchTuteeApplicationResponse
java.lang.Object
java.lang.Record
inha.dayoook_e.tutee.api.controller.dto.response.SearchTuteeApplicationResponse
public record SearchTuteeApplicationResponse(@NotNull Integer id, @NotNull TutorInfoResponse tutorInfo, @NotEmpty List<SearchLanguagesResponse> languages, @NotEmpty List<ScheduleTimeSlot> scheduleTimeSlots, @NotNull LocalDateTime createdAt, @NotNull Status status, @NotNull String message)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSearchTuteeApplicationResponse
(@NotNull Integer id, @NotNull TutorInfoResponse tutorInfo, @NotEmpty List<SearchLanguagesResponse> languages, @NotEmpty List<ScheduleTimeSlot> scheduleTimeSlots, @NotNull LocalDateTime createdAt, @NotNull Status status, @NotNull String message) Creates an instance of aSearchTuteeApplicationResponse
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull LocalDateTime
Returns the value of thecreatedAt
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.@NotEmpty List<SearchLanguagesResponse>
Returns the value of thelanguages
record component.@NotNull String
message()
Returns the value of themessage
record component.@NotEmpty List<ScheduleTimeSlot>
Returns the value of thescheduleTimeSlots
record component.@NotNull Status
status()
Returns the value of thestatus
record component.final String
toString()
Returns a string representation of this record class.@NotNull TutorInfoResponse
Returns the value of thetutorInfo
record component.
-
Constructor Details
-
SearchTuteeApplicationResponse
public SearchTuteeApplicationResponse(@NotNull @NotNull Integer id, @NotNull @NotNull TutorInfoResponse tutorInfo, @NotEmpty @NotEmpty List<SearchLanguagesResponse> languages, @NotEmpty @NotEmpty List<ScheduleTimeSlot> scheduleTimeSlots, @NotNull @NotNull LocalDateTime createdAt, @NotNull @NotNull Status status, @NotNull @NotNull String message) Creates an instance of aSearchTuteeApplicationResponse
record class.- Parameters:
id
- the value for theid
record componenttutorInfo
- the value for thetutorInfo
record componentlanguages
- the value for thelanguages
record componentscheduleTimeSlots
- the value for thescheduleTimeSlots
record componentcreatedAt
- the value for thecreatedAt
record componentstatus
- the value for thestatus
record componentmessage
- the value for themessage
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
-
tutorInfo
Returns the value of thetutorInfo
record component.- Returns:
- the value of the
tutorInfo
record component
-
languages
Returns the value of thelanguages
record component.- Returns:
- the value of the
languages
record component
-
scheduleTimeSlots
Returns the value of thescheduleTimeSlots
record component.- Returns:
- the value of the
scheduleTimeSlots
record component
-
createdAt
Returns the value of thecreatedAt
record component.- Returns:
- the value of the
createdAt
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-