Record Class EventAttendeePromotion

java.lang.Object
java.lang.Record
org.exoplatform.agenda.model.EventAttendeePromotion
Record Components:
attendee - the attendee's row holding the first date promoted, as stored after the promotion: on the row of a series, its fromOccurrenceId is that date; on the row of a date, the date is the row's
otherDates - the number of dates promoted after the first one, 0 on an event that is not recurring
openEnded - true when the dates promoted have no last one: the seat was given from the first date on, on a series with no end, and otherDates counts none of the dates after it

public record EventAttendeePromotion(EventAttendee attendee, int otherDates, boolean openEnded) extends Record
The seats one decision gave an attendee waiting for them, on one event: on a recurring event, every date the attendee got a seat for, the dates its series carries and the dates stored on a row of their own alike.
  • Constructor Details

    • EventAttendeePromotion

      public EventAttendeePromotion(EventAttendee attendee, int otherDates, boolean openEnded)
      Creates an instance of a EventAttendeePromotion record class.
      Parameters:
      attendee - the value for the attendee record component
      otherDates - the value for the otherDates record component
      openEnded - the value for the openEnded 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • attendee

      public EventAttendee attendee()
      Returns the value of the attendee record component.
      Returns:
      the value of the attendee record component
    • otherDates

      public int otherDates()
      Returns the value of the otherDates record component.
      Returns:
      the value of the otherDates record component
    • openEnded

      public boolean openEnded()
      Returns the value of the openEnded record component.
      Returns:
      the value of the openEnded record component