Class ImmutableRowCanBeRemovedUpdatedEvent
- java.lang.Object
-
- io.dialob.session.engine.session.command.event.ImmutableRowCanBeRemovedUpdatedEvent
-
- All Implemented Interfaces:
AttributeEvent,Event,RowCanBeRemovedUpdatedEvent,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRowCanBeRemovedUpdatedEvent extends Object implements RowCanBeRemovedUpdatedEvent
Immutable implementation ofRowCanBeRemovedUpdatedEvent.Use the builder to create immutable instances:
ImmutableRowCanBeRemovedUpdatedEvent.builder(). Use the static factory method to create immutable instances:ImmutableRowCanBeRemovedUpdatedEvent.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRowCanBeRemovedUpdatedEvent.BuilderBuilds instances of typeImmutableRowCanBeRemovedUpdatedEvent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRowCanBeRemovedUpdatedEvent.Builderbuilder()Creates a builder forImmutableRowCanBeRemovedUpdatedEvent.static ImmutableRowCanBeRemovedUpdatedEventcopyOf(RowCanBeRemovedUpdatedEvent instance)Creates an immutable copy of aRowCanBeRemovedUpdatedEventvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRowCanBeRemovedUpdatedEventthat have equal attribute values.TargetEventgetTarget()inthashCode()Computes a hash code from attributes:target.static ImmutableRowCanBeRemovedUpdatedEventof(TargetEvent target)Construct a new immutableRowCanBeRemovedUpdatedEventinstance.StringtoString()Prints the immutable valueRowCanBeRemovedUpdatedEventwith attribute values.ImmutableRowCanBeRemovedUpdatedEventwithTarget(TargetEvent value)Copy the current immutable object by setting a value for thetargetattribute.
-
-
-
Method Detail
-
getTarget
public TargetEvent getTarget()
- Specified by:
getTargetin interfaceAttributeEvent- Returns:
- The value of the
targetattribute
-
withTarget
public final ImmutableRowCanBeRemovedUpdatedEvent withTarget(TargetEvent value)
Copy the current immutable object by setting a value for thetargetattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for target- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableRowCanBeRemovedUpdatedEventthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:target.
-
toString
public String toString()
Prints the immutable valueRowCanBeRemovedUpdatedEventwith attribute values.
-
of
public static ImmutableRowCanBeRemovedUpdatedEvent of(TargetEvent target)
Construct a new immutableRowCanBeRemovedUpdatedEventinstance.- Parameters:
target- The value for thetargetattribute- Returns:
- An immutable RowCanBeRemovedUpdatedEvent instance
-
copyOf
public static ImmutableRowCanBeRemovedUpdatedEvent copyOf(RowCanBeRemovedUpdatedEvent instance)
Creates an immutable copy of aRowCanBeRemovedUpdatedEventvalue. 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 RowCanBeRemovedUpdatedEvent instance
-
builder
public static ImmutableRowCanBeRemovedUpdatedEvent.Builder builder()
Creates a builder forImmutableRowCanBeRemovedUpdatedEvent.ImmutableRowCanBeRemovedUpdatedEvent.builder() .target(io.dialob.session.engine.session.command.event.TargetEvent) // requiredtarget.build();- Returns:
- A new ImmutableRowCanBeRemovedUpdatedEvent builder
-
-