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 tolessonDate- the original date of the lessoncancelRationale- the cancellation rationalecancelComment- the cancellation commentcancelDate- the cancellation date
- Enclosing class:
HyperplanningManager
public static record HyperplanningManager.CancelledLesson(String code, String label, String fullLabel, LocalDateTime lessonDate, String cancelRationale, String cancelComment, LocalDateTime cancelDate)
extends Record
Represent a cancelled lesson from hyperplanning
-
Constructor Summary
ConstructorsConstructorDescriptionCancelledLesson(String code, String label, String fullLabel, LocalDateTime lessonDate, String cancelRationale, String cancelComment, LocalDateTime cancelDate) Creates an instance of aCancelledLessonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecancelCommentrecord component.Returns the value of thecancelDaterecord component.Returns the value of thecancelRationalerecord component.code()Returns the value of thecoderecord 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.Returns the value of thelessonDaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CancelledLesson
public CancelledLesson(String code, String label, String fullLabel, LocalDateTime lessonDate, String cancelRationale, String cancelComment, LocalDateTime cancelDate) Creates an instance of aCancelledLessonrecord class.- Parameters:
code- the value for thecoderecord componentlabel- the value for thelabelrecord componentfullLabel- the value for thefullLabelrecord componentlessonDate- the value for thelessonDaterecord componentcancelRationale- the value for thecancelRationalerecord componentcancelComment- the value for thecancelCommentrecord componentcancelDate- the value for thecancelDaterecord 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
-
lessonDate
Returns the value of thelessonDaterecord component.- Returns:
- the value of the
lessonDaterecord 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
-
cancelDate
Returns the value of thecancelDaterecord component.- Returns:
- the value of the
cancelDaterecord component
-