Record Class EventSeatCounts

java.lang.Object
java.lang.Record
org.exoplatform.agenda.model.EventSeatCounts
Record Components:
acceptedCount - the attendees answering EventAttendeeResponse.ACCEPTED at the date
waitingCount - the attendees answering EventAttendeeResponse.WAITING at the date
waitingListPosition - 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

public record EventSeatCounts(int acceptedCount, int waitingCount, Integer waitingListPosition) extends Record
The seats of one date of an event, as its stored answers hold them.
  • Constructor Details

    • EventSeatCounts

      public EventSeatCounts(int acceptedCount, int waitingCount, Integer waitingListPosition)
      Creates an instance of a EventSeatCounts record class.
      Parameters:
      acceptedCount - the value for the acceptedCount record component
      waitingCount - the value for the waitingCount record component
      waitingListPosition - the value for the waitingListPosition 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 '=='.
      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.
    • acceptedCount

      public int acceptedCount()
      Returns the value of the acceptedCount record component.
      Returns:
      the value of the acceptedCount record component
    • waitingCount

      public int waitingCount()
      Returns the value of the waitingCount record component.
      Returns:
      the value of the waitingCount record component
    • waitingListPosition

      public Integer waitingListPosition()
      Returns the value of the waitingListPosition record component.
      Returns:
      the value of the waitingListPosition record component