Package io.dialob.client.spi.event
Class ImmutableQuestionnaireOpenedEvent
- java.lang.Object
-
- io.dialob.client.spi.event.ImmutableQuestionnaireOpenedEvent
-
- All Implemented Interfaces:
EventPublisher.Event,QuestionnaireEvent,QuestionnaireEvent.QuestionnaireOpenedEvent,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableQuestionnaireOpenedEvent extends Object implements QuestionnaireEvent.QuestionnaireOpenedEvent
Immutable implementation ofQuestionnaireEvent.QuestionnaireOpenedEvent.Use the builder to create immutable instances:
ImmutableQuestionnaireOpenedEvent.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableQuestionnaireOpenedEvent.BuilderBuilds instances of typeImmutableQuestionnaireOpenedEvent.-
Nested classes/interfaces inherited from interface io.dialob.client.spi.event.QuestionnaireEvent
QuestionnaireEvent.QuestionnaireActionsEvent, QuestionnaireEvent.QuestionnaireClientConnectedEvent, QuestionnaireEvent.QuestionnaireClientDisconnectedEvent, QuestionnaireEvent.QuestionnaireCompletedEvent, QuestionnaireEvent.QuestionnaireCreatedEvent, QuestionnaireEvent.QuestionnaireOpenedEvent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableQuestionnaireOpenedEvent.Builderbuilder()Creates a builder forImmutableQuestionnaireOpenedEvent.static ImmutableQuestionnaireOpenedEventcopyOf(QuestionnaireEvent.QuestionnaireOpenedEvent instance)Creates an immutable copy of aQuestionnaireEvent.QuestionnaireOpenedEventvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableQuestionnaireOpenedEventthat have equal attribute values.StringgetQuestionnaireId()inthashCode()Computes a hash code from attributes:questionnaireId.StringtoString()Prints the immutable valueQuestionnaireOpenedEventwith attribute values.ImmutableQuestionnaireOpenedEventwithQuestionnaireId(String value)Copy the current immutable object by setting a value for thequestionnaireIdattribute.
-
-
-
Method Detail
-
getQuestionnaireId
public String getQuestionnaireId()
- Specified by:
getQuestionnaireIdin interfaceQuestionnaireEvent- Returns:
- questionnaire id of event
-
withQuestionnaireId
public final ImmutableQuestionnaireOpenedEvent withQuestionnaireId(String value)
Copy the current immutable object by setting a value for thequestionnaireIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for questionnaireId- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableQuestionnaireOpenedEventthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:questionnaireId.
-
toString
public String toString()
Prints the immutable valueQuestionnaireOpenedEventwith attribute values.
-
copyOf
public static ImmutableQuestionnaireOpenedEvent copyOf(QuestionnaireEvent.QuestionnaireOpenedEvent instance)
Creates an immutable copy of aQuestionnaireEvent.QuestionnaireOpenedEventvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable QuestionnaireOpenedEvent instance
-
builder
public static ImmutableQuestionnaireOpenedEvent.Builder builder()
Creates a builder forImmutableQuestionnaireOpenedEvent.ImmutableQuestionnaireOpenedEvent.builder() .questionnaireId(String) // requiredquestionnaireId.build();- Returns:
- A new ImmutableQuestionnaireOpenedEvent builder
-
-