Record Class ClassTimeTableRequest
java.lang.Object
java.lang.Record
it.astromark.agenda.schoolclass.dto.ClassTimeTableRequest
-
Constructor Summary
ConstructorsConstructorDescriptionClassTimeTableRequest
(@NotNull Integer schoolClassId, @NotNull LocalDate startDate, LocalDate endDate, @PositiveOrZero @Max(40L) Short expectedHours) Creates an instance of aClassTimeTableRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionendDate()
Returns the value of theendDate
record component.final boolean
Indicates whether some other object is "equal to" this one.@PositiveOrZero @Max(40L) Short
Returns the value of theexpectedHours
record component.final int
hashCode()
Returns a hash code value for this object.@NotNull Integer
Returns the value of theschoolClassId
record component.@NotNull LocalDate
Returns the value of thestartDate
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ClassTimeTableRequest
public ClassTimeTableRequest(@NotNull @NotNull Integer schoolClassId, @NotNull @NotNull LocalDate startDate, LocalDate endDate, @PositiveOrZero @Max(40L) @PositiveOrZero @Max(40L) Short expectedHours) Creates an instance of aClassTimeTableRequest
record class.- Parameters:
schoolClassId
- the value for theschoolClassId
record componentstartDate
- the value for thestartDate
record componentendDate
- the value for theendDate
record componentexpectedHours
- the value for theexpectedHours
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)
. -
schoolClassId
Returns the value of theschoolClassId
record component.- Returns:
- the value of the
schoolClassId
record component
-
startDate
Returns the value of thestartDate
record component.- Returns:
- the value of the
startDate
record component
-
endDate
Returns the value of theendDate
record component.- Returns:
- the value of the
endDate
record component
-
expectedHours
Returns the value of theexpectedHours
record component.- Returns:
- the value of the
expectedHours
record component
-