Package io.dialob.integration.api.event
Class ImmutableFormUpdatedEvent
java.lang.Object
io.dialob.integration.api.event.ImmutableFormUpdatedEvent
- All Implemented Interfaces:
DistributedEvent,Event,FormEvent,FormUpdatedEvent,TenantScopedEvent,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableFormUpdatedEvent
extends Object
implements FormUpdatedEvent
Immutable implementation of
FormUpdatedEvent.
Use the builder to create immutable instances:
ImmutableFormUpdatedEvent.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFormUpdatedEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableFormUpdatedEvent.static ImmutableFormUpdatedEventcopyOf(FormUpdatedEvent instance) Creates an immutable copy of aFormUpdatedEventvalue.booleanThis instance is equal to all instances ofImmutableFormUpdatedEventthat have equal attribute values.inthashCode()Computes a hash code from attributes:tenant,formId,source,revision.toString()Prints the immutable valueFormUpdatedEventwith attribute values.withFormId(String value) Copy the current immutable object by setting a value for theformIdattribute.withRevision(String value) Copy the current immutable object by setting a value for therevisionattribute.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
-
getRevision
- Specified by:
getRevisionin interfaceFormUpdatedEvent- Returns:
- The value of the
revisionattribute
-
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
-
withRevision
Copy the current immutable object by setting a value for therevisionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for revision- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableFormUpdatedEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:tenant,formId,source,revision. -
toString
Prints the immutable valueFormUpdatedEventwith attribute values. -
copyOf
Creates an immutable copy of aFormUpdatedEventvalue. 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 FormUpdatedEvent instance
-
builder
Creates a builder forImmutableFormUpdatedEvent.ImmutableFormUpdatedEvent.builder() .tenant(io.dialob.security.tenant.Tenant) // requiredtenant.formId(String) // requiredformId.source(String) // requiredsource.revision(String) // requiredrevision.build();- Returns:
- A new ImmutableFormUpdatedEvent builder
-