Record Class EventResponseOutcome

java.lang.Object
java.lang.Record
org.exoplatform.agenda.model.EventResponseOutcome
Record Components:
response - the answer stored at the date answered, or at the date the series answer is read at when no date was answered
firstWaitingOccurrenceId - the occurrence id of the first date of a series the answer left waiting, null when it left none or when the event is not a series nor a date of one

public record EventResponseOutcome(EventAttendeeResponse response, ZonedDateTime firstWaitingOccurrenceId) extends Record
What an answer stored, as decided under the lock of its event: on an event with a capacity limit a Yes is stored as EventAttendeeResponse.WAITING on a date with no seat left.
  • Constructor Details

    • EventResponseOutcome

      public EventResponseOutcome(EventAttendeeResponse response, ZonedDateTime firstWaitingOccurrenceId)
      Creates an instance of a EventResponseOutcome record class.
      Parameters:
      response - the value for the response record component
      firstWaitingOccurrenceId - the value for the firstWaitingOccurrenceId 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.
    • response

      public EventAttendeeResponse response()
      Returns the value of the response record component.
      Returns:
      the value of the response record component
    • firstWaitingOccurrenceId

      public ZonedDateTime firstWaitingOccurrenceId()
      Returns the value of the firstWaitingOccurrenceId record component.
      Returns:
      the value of the firstWaitingOccurrenceId record component