Package org.exoplatform.agenda.model
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, itsfromOccurrenceIdis that date; on the row of a date, the date is the row'sotherDates- the number of dates promoted after the first one, 0 on an event that is not recurringopenEnded- true when the dates promoted have no last one: the seat was given from the first date on, on a series with no end, andotherDatescounts 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 Summary
ConstructorsConstructorDescriptionEventAttendeePromotion(EventAttendee attendee, int otherDates, boolean openEnded) Creates an instance of aEventAttendeePromotionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionattendee()Returns the value of theattendeerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theopenEndedrecord component.intReturns the value of theotherDatesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventAttendeePromotion
Creates an instance of aEventAttendeePromotionrecord class.- Parameters:
attendee- the value for theattendeerecord componentotherDates- the value for theotherDatesrecord componentopenEnded- the value for theopenEndedrecord 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
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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
attendee
Returns the value of theattendeerecord component.- Returns:
- the value of the
attendeerecord component
-
otherDates
public int otherDates()Returns the value of theotherDatesrecord component.- Returns:
- the value of the
otherDatesrecord component
-
openEnded
public boolean openEnded()Returns the value of theopenEndedrecord component.- Returns:
- the value of the
openEndedrecord component
-