Record Class TuteeScheduleResponse
java.lang.Object
java.lang.Record
inha.dayoook_e.tutee.api.controller.dto.response.TuteeScheduleResponse
public record TuteeScheduleResponse(@jakarta.validation.constraints.NotNull int year, @jakarta.validation.constraints.NotNull int month, List<DaySchedule> schedules)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTuteeScheduleResponse
(@jakarta.validation.constraints.NotNull int year, @jakarta.validation.constraints.NotNull int month, List<DaySchedule> schedules) Creates an instance of aTuteeScheduleResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@jakarta.validation.constraints.NotNull int
month()
Returns the value of themonth
record component.Returns the value of theschedules
record component.final String
toString()
Returns a string representation of this record class.@jakarta.validation.constraints.NotNull int
year()
Returns the value of theyear
record component.
-
Constructor Details
-
TuteeScheduleResponse
public TuteeScheduleResponse(@NotNull @jakarta.validation.constraints.NotNull int year, @NotNull @jakarta.validation.constraints.NotNull int month, List<DaySchedule> schedules) Creates an instance of aTuteeScheduleResponse
record class.- Parameters:
year
- the value for theyear
record componentmonth
- the value for themonth
record componentschedules
- the value for theschedules
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
year
@NotNull public @jakarta.validation.constraints.NotNull int year()Returns the value of theyear
record component.- Returns:
- the value of the
year
record component
-
month
@NotNull public @jakarta.validation.constraints.NotNull int month()Returns the value of themonth
record component.- Returns:
- the value of the
month
record component
-
schedules
Returns the value of theschedules
record component.- Returns:
- the value of the
schedules
record component
-