Class ImmutableRowsCanBeAddedUpdatedEvent
- java.lang.Object
-
- io.dialob.session.engine.session.command.event.ImmutableRowsCanBeAddedUpdatedEvent
-
- All Implemented Interfaces:
AttributeEvent,Event,RowsCanBeAddedUpdatedEvent,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRowsCanBeAddedUpdatedEvent extends Object implements RowsCanBeAddedUpdatedEvent
Immutable implementation ofRowsCanBeAddedUpdatedEvent.Use the builder to create immutable instances:
ImmutableRowsCanBeAddedUpdatedEvent.builder(). Use the static factory method to create immutable instances:ImmutableRowsCanBeAddedUpdatedEvent.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRowsCanBeAddedUpdatedEvent.BuilderBuilds instances of typeImmutableRowsCanBeAddedUpdatedEvent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRowsCanBeAddedUpdatedEvent.Builderbuilder()Creates a builder forImmutableRowsCanBeAddedUpdatedEvent.static ImmutableRowsCanBeAddedUpdatedEventcopyOf(RowsCanBeAddedUpdatedEvent instance)Creates an immutable copy of aRowsCanBeAddedUpdatedEventvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRowsCanBeAddedUpdatedEventthat have equal attribute values.TargetEventgetTarget()inthashCode()Computes a hash code from attributes:target.static ImmutableRowsCanBeAddedUpdatedEventof(TargetEvent target)Construct a new immutableRowsCanBeAddedUpdatedEventinstance.StringtoString()Prints the immutable valueRowsCanBeAddedUpdatedEventwith attribute values.ImmutableRowsCanBeAddedUpdatedEventwithTarget(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 ImmutableRowsCanBeAddedUpdatedEvent 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 ofImmutableRowsCanBeAddedUpdatedEventthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:target.
-
toString
public String toString()
Prints the immutable valueRowsCanBeAddedUpdatedEventwith attribute values.
-
of
public static ImmutableRowsCanBeAddedUpdatedEvent of(TargetEvent target)
Construct a new immutableRowsCanBeAddedUpdatedEventinstance.- Parameters:
target- The value for thetargetattribute- Returns:
- An immutable RowsCanBeAddedUpdatedEvent instance
-
copyOf
public static ImmutableRowsCanBeAddedUpdatedEvent copyOf(RowsCanBeAddedUpdatedEvent instance)
Creates an immutable copy of aRowsCanBeAddedUpdatedEventvalue. 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 RowsCanBeAddedUpdatedEvent instance
-
builder
public static ImmutableRowsCanBeAddedUpdatedEvent.Builder builder()
Creates a builder forImmutableRowsCanBeAddedUpdatedEvent.ImmutableRowsCanBeAddedUpdatedEvent.builder() .target(io.dialob.session.engine.session.command.event.TargetEvent) // requiredtarget.build();- Returns:
- A new ImmutableRowsCanBeAddedUpdatedEvent builder
-
-