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 aTuteeScheduleResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@jakarta.validation.constraints.NotNull intmonth()Returns the value of themonthrecord component.Returns the value of theschedulesrecord component.final StringtoString()Returns a string representation of this record class.@jakarta.validation.constraints.NotNull intyear()Returns the value of theyearrecord 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 aTuteeScheduleResponserecord class.- Parameters:
year- the value for theyearrecord componentmonth- the value for themonthrecord componentschedules- the value for theschedulesrecord 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 theyearrecord component.- Returns:
- the value of the
yearrecord component
-
month
@NotNull public @jakarta.validation.constraints.NotNull int month()Returns the value of themonthrecord component.- Returns:
- the value of the
monthrecord component
-
schedules
Returns the value of theschedulesrecord component.- Returns:
- the value of the
schedulesrecord component
-