Package io.dialob.integration.api.event
Class ImmutableFormDeletedEvent
java.lang.Object
io.dialob.integration.api.event.ImmutableFormDeletedEvent
- All Implemented Interfaces:
DistributedEvent,Event,FormDeletedEvent,FormEvent,TenantScopedEvent,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableFormDeletedEvent
extends Object
implements FormDeletedEvent
Immutable implementation of
FormDeletedEvent.
Use the builder to create immutable instances:
ImmutableFormDeletedEvent.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFormDeletedEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableFormDeletedEvent.static ImmutableFormDeletedEventcopyOf(FormDeletedEvent instance) Creates an immutable copy of aFormDeletedEventvalue.booleanThis instance is equal to all instances ofImmutableFormDeletedEventthat have equal attribute values.inthashCode()Computes a hash code from attributes:tenant,formId,source.toString()Prints the immutable valueFormDeletedEventwith attribute values.withFormId(String value) Copy the current immutable object by setting a value for theformIdattribute.withSource(String value) Copy the current immutable object by setting a value for thesourceattribute.withTenant(Tenant value) Copy the current immutable object by setting a value for thetenantattribute.
-
Method Details
-
getTenant
- Specified by:
getTenantin interfaceTenantScopedEvent- Returns:
- The value of the
tenantattribute
-
getFormId
-
getSource
- Specified by:
getSourcein interfaceDistributedEvent- Returns:
- The value of the
sourceattribute
-
withTenant
Copy the current immutable object by setting a value for thetenantattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tenant- Returns:
- A modified copy of the
thisobject
-
withFormId
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
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
This instance is equal to all instances ofImmutableFormDeletedEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:tenant,formId,source. -
toString
Prints the immutable valueFormDeletedEventwith attribute values. -
copyOf
Creates an immutable copy of aFormDeletedEventvalue. 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
Creates a builder forImmutableFormDeletedEvent.ImmutableFormDeletedEvent.builder() .tenant(io.dialob.security.tenant.Tenant) // requiredtenant.formId(String) // requiredformId.source(String) // requiredsource.build();- Returns:
- A new ImmutableFormDeletedEvent builder
-