Record Class EventSeatCounts
java.lang.Object
java.lang.Record
org.exoplatform.agenda.model.EventSeatCounts
- Record Components:
acceptedCount- the attendees answeringEventAttendeeResponse.ACCEPTEDat the datewaitingCount- the attendees answeringEventAttendeeResponse.WAITINGat the datewaitingListPosition- the rank of the user read on the waiting list of the date, from 1, in promotion order; null when the user is not waiting there
-
Constructor Summary
ConstructorsConstructorDescriptionEventSeatCounts(int acceptedCount, int waitingCount, Integer waitingListPosition) Creates an instance of aEventSeatCountsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theacceptedCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intReturns the value of thewaitingCountrecord component.Returns the value of thewaitingListPositionrecord component.
-
Constructor Details
-
EventSeatCounts
Creates an instance of aEventSeatCountsrecord class.- Parameters:
acceptedCount- the value for theacceptedCountrecord componentwaitingCount- the value for thewaitingCountrecord componentwaitingListPosition- the value for thewaitingListPositionrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
acceptedCount
public int acceptedCount()Returns the value of theacceptedCountrecord component.- Returns:
- the value of the
acceptedCountrecord component
-
waitingCount
public int waitingCount()Returns the value of thewaitingCountrecord component.- Returns:
- the value of the
waitingCountrecord component
-
waitingListPosition
Returns the value of thewaitingListPositionrecord component.- Returns:
- the value of the
waitingListPositionrecord component
-