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 answeredfirstWaitingOccurrenceId- 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 Summary
ConstructorsConstructorDescriptionEventResponseOutcome(EventAttendeeResponse response, ZonedDateTime firstWaitingOccurrenceId) Creates an instance of aEventResponseOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstWaitingOccurrenceIdrecord component.final inthashCode()Returns a hash code value for this object.response()Returns the value of theresponserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventResponseOutcome
Creates an instance of aEventResponseOutcomerecord class.- Parameters:
response- the value for theresponserecord componentfirstWaitingOccurrenceId- the value for thefirstWaitingOccurrenceIdrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
response
-
firstWaitingOccurrenceId
Returns the value of thefirstWaitingOccurrenceIdrecord component.- Returns:
- the value of the
firstWaitingOccurrenceIdrecord component
-