Package io.dialob.client.spi.event
Class ImmutableFormDeletedEvent
- java.lang.Object
-
- io.dialob.client.spi.event.ImmutableFormDeletedEvent
-
- All Implemented Interfaces:
DistributedEvent,DistributedEvent.FormDeletedEvent,DistributedEvent.FormEvent,EventPublisher.Event,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableFormDeletedEvent extends Object implements DistributedEvent.FormDeletedEvent
Immutable implementation ofDistributedEvent.FormDeletedEvent.Use the builder to create immutable instances:
ImmutableFormDeletedEvent.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableFormDeletedEvent.BuilderBuilds instances of typeImmutableFormDeletedEvent.-
Nested classes/interfaces inherited from interface io.dialob.client.spi.event.DistributedEvent
DistributedEvent.FormDeletedEvent, DistributedEvent.FormEvent, DistributedEvent.FormTaggedEvent, DistributedEvent.FormUpdatedEvent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableFormDeletedEvent.Builderbuilder()Creates a builder forImmutableFormDeletedEvent.static ImmutableFormDeletedEventcopyOf(DistributedEvent.FormDeletedEvent instance)Creates an immutable copy of aDistributedEvent.FormDeletedEventvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableFormDeletedEventthat have equal attribute values.StringgetFormId()StringgetSource()inthashCode()Computes a hash code from attributes:formId,source.StringtoString()Prints the immutable valueFormDeletedEventwith attribute values.ImmutableFormDeletedEventwithFormId(String value)Copy the current immutable object by setting a value for theformIdattribute.ImmutableFormDeletedEventwithSource(String value)Copy the current immutable object by setting a value for thesourceattribute.
-
-
-
Method Detail
-
getFormId
public String getFormId()
- Specified by:
getFormIdin interfaceDistributedEvent.FormEvent- Returns:
- The value of the
formIdattribute
-
getSource
public String getSource()
- Specified by:
getSourcein interfaceDistributedEvent- Returns:
- The value of the
sourceattribute
-
withFormId
public final ImmutableFormDeletedEvent withFormId(String value)
Copy the current immutable object by setting a value for theformIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for formId- Returns:
- A modified copy of the
thisobject
-
withSource
public final ImmutableFormDeletedEvent withSource(String value)
Copy the current immutable object by setting a value for thesourceattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for source- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableFormDeletedEventthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:formId,source.
-
toString
public String toString()
Prints the immutable valueFormDeletedEventwith attribute values.
-
copyOf
public static ImmutableFormDeletedEvent copyOf(DistributedEvent.FormDeletedEvent instance)
Creates an immutable copy of aDistributedEvent.FormDeletedEventvalue. 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 FormDeletedEvent instance
-
builder
public static ImmutableFormDeletedEvent.Builder builder()
Creates a builder forImmutableFormDeletedEvent.ImmutableFormDeletedEvent.builder() .formId(String) // requiredformId.source(String) // requiredsource.build();- Returns:
- A new ImmutableFormDeletedEvent builder
-
-