Package org.ametys.plugins.hyperplanning
Record Class HyperplanningManager.CancelledLessonReport
java.lang.Object
java.lang.Record
org.ametys.plugins.hyperplanning.HyperplanningManager.CancelledLessonReport
- Record Components:
timeStamp- the time of the reportlessons- the list of cancellation
- Enclosing class:
HyperplanningManager
public static record HyperplanningManager.CancelledLessonReport(LocalDateTime timeStamp, List<HyperplanningManager.CancelledLesson> lessons)
extends Record
A list of cancellation and the time it was computed
-
Constructor Summary
ConstructorsConstructorDescriptionCancelledLessonReport(LocalDateTime timeStamp, List<HyperplanningManager.CancelledLesson> lessons) Creates an instance of aCancelledLessonReportrecord 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.lessons()Returns the value of thelessonsrecord component.Returns the value of thetimeStamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CancelledLessonReport
public CancelledLessonReport(LocalDateTime timeStamp, List<HyperplanningManager.CancelledLesson> lessons) Creates an instance of aCancelledLessonReportrecord class.
-
-
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
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). -
timeStamp
Returns the value of thetimeStamprecord component.- Returns:
- the value of the
timeStamprecord component
-
lessons
Returns the value of thelessonsrecord component.- Returns:
- the value of the
lessonsrecord component
-