Package org.ametys.plugins.hyperplanning
Record Class HyperplanningManager.CancelledLesson
java.lang.Object
java.lang.Record
org.ametys.plugins.hyperplanning.HyperplanningManager.CancelledLesson
- Record Components:
code- the code of the subject this lesson belongs tolabel- the label of the subject this lesson belongs tofullLabel- the full label of the subject this lesson belongs todate- the original date of the lessoncancelRationale- the cancellation rationalecancelComment- the cancellation comment
- Enclosing class:
HyperplanningManager
public static record HyperplanningManager.CancelledLesson(String code, String label, String fullLabel, ZonedDateTime date, String cancelRationale, String cancelComment)
extends Record
Represent a cancelled lesson from hyperplanning
-
Constructor Summary
ConstructorsConstructorDescriptionCancelledLesson(String code, String label, String fullLabel, ZonedDateTime date, String cancelRationale, String cancelComment) Creates an instance of aCancelledLessonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecancelCommentrecord component.Returns the value of thecancelRationalerecord component.code()Returns the value of thecoderecord component.date()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefullLabelrecord component.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CancelledLesson
public CancelledLesson(String code, String label, String fullLabel, ZonedDateTime date, String cancelRationale, String cancelComment) Creates an instance of aCancelledLessonrecord class.- Parameters:
code- the value for thecoderecord componentlabel- the value for thelabelrecord componentfullLabel- the value for thefullLabelrecord componentdate- the value for thedaterecord componentcancelRationale- the value for thecancelRationalerecord componentcancelComment- the value for thecancelCommentrecord 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
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). -
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
fullLabel
Returns the value of thefullLabelrecord component.- Returns:
- the value of the
fullLabelrecord component
-
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
cancelRationale
Returns the value of thecancelRationalerecord component.- Returns:
- the value of the
cancelRationalerecord component
-
cancelComment
Returns the value of thecancelCommentrecord component.- Returns:
- the value of the
cancelCommentrecord component
-