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 to
label - the label of the subject this lesson belongs to
fullLabel - the full label of the subject this lesson belongs to
date - the original date of the lesson
cancelRationale - the cancellation rationale
cancelComment - 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 Details

    • CancelledLesson

      public CancelledLesson(String code, String label, String fullLabel, ZonedDateTime date, String cancelRationale, String cancelComment)
      Creates an instance of a CancelledLesson record class.
      Parameters:
      code - the value for the code record component
      label - the value for the label record component
      fullLabel - the value for the fullLabel record component
      date - the value for the date record component
      cancelRationale - the value for the cancelRationale record component
      cancelComment - the value for the cancelComment record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • code

      public String code()
      Returns the value of the code record component.
      Returns:
      the value of the code record component
    • label

      public String label()
      Returns the value of the label record component.
      Returns:
      the value of the label record component
    • fullLabel

      public String fullLabel()
      Returns the value of the fullLabel record component.
      Returns:
      the value of the fullLabel record component
    • date

      public ZonedDateTime date()
      Returns the value of the date record component.
      Returns:
      the value of the date record component
    • cancelRationale

      Returns the value of the cancelRationale record component.
      Returns:
      the value of the cancelRationale record component
    • cancelComment

      Returns the value of the cancelComment record component.
      Returns:
      the value of the cancelComment record component