Class ImmutableUpdateRowCanBeRemovedCommand
java.lang.Object
io.dialob.session.engine.session.command.ImmutableUpdateRowCanBeRemovedCommand
- All Implemented Interfaces:
AbstractUpdateAttributeCommand<Boolean>,AbstractUpdateBooleanAttributeCommand,AbstractUpdateCommand<ItemId,,ItemState> Command<ItemState>,ItemUpdateCommand,UpdateCommand<ItemId,,ItemState> UpdateRowCanBeRemovedCommand,Serializable
@Generated(from="UpdateRowCanBeRemovedCommand",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableUpdateRowCanBeRemovedCommand
extends Object
implements UpdateRowCanBeRemovedCommand
Immutable implementation of
UpdateRowCanBeRemovedCommand.
Use the builder to create immutable instances:
ImmutableUpdateRowCanBeRemovedCommand.builder().
Use the static factory method to create immutable instances:
ImmutableUpdateRowCanBeRemovedCommand.of().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableUpdateRowCanBeRemovedCommand. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableUpdateRowCanBeRemovedCommand.copyOf(UpdateRowCanBeRemovedCommand instance) Creates an immutable copy of aUpdateRowCanBeRemovedCommandvalue.booleanThis instance is equal to all instances ofImmutableUpdateRowCanBeRemovedCommandthat have equal attribute values.inthashCode()Computes a hash code from attributes:triggers,targetId,expression.Construct a new immutableUpdateRowCanBeRemovedCommandinstance.Construct a new immutableUpdateRowCanBeRemovedCommandinstance.toString()Prints the immutable valueUpdateRowCanBeRemovedCommandwith attribute values.withExpression(Expression value) Copy the current immutable object by setting a value for theexpressionattribute.withTargetId(ItemId value) Copy the current immutable object by setting a value for thetargetIdattribute.withTriggers(Trigger<ItemState>... elements) Copy the current immutable object with elements that replace the content oftriggers.withTriggers(Iterable<? extends Trigger<ItemState>> elements) Copy the current immutable object with elements that replace the content oftriggers.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.dialob.session.engine.session.command.AbstractUpdateAttributeCommand
getEventMatchersMethods inherited from interface io.dialob.session.engine.session.command.AbstractUpdateBooleanAttributeCommand
evalExpressionMethods inherited from interface io.dialob.session.engine.session.command.UpdateRowCanBeRemovedCommand
update
-
Method Details
-
getTriggers
- Specified by:
getTriggersin interfaceCommand<ItemState>- Returns:
- The value of the
triggersattribute
-
getTargetId
- Specified by:
getTargetIdin interfaceUpdateCommand<ItemId,ItemState> - Returns:
- The value of the
targetIdattribute
-
getExpression
- Specified by:
getExpressionin interfaceAbstractUpdateAttributeCommand<Boolean>- Returns:
- The value of the
expressionattribute
-
withTriggers
@SafeVarargs public final ImmutableUpdateRowCanBeRemovedCommand withTriggers(Trigger<ItemState>... elements) Copy the current immutable object with elements that replace the content oftriggers.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withTriggers
public final ImmutableUpdateRowCanBeRemovedCommand withTriggers(Iterable<? extends Trigger<ItemState>> elements) Copy the current immutable object with elements that replace the content oftriggers. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of triggers elements to set- Returns:
- A modified copy or
thisif not changed
-
withTargetId
Copy the current immutable object by setting a value for thetargetIdattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Specified by:
withTargetIdin interfaceUpdateCommand<ItemId,ItemState> - Parameters:
value- A new value for targetId- Returns:
- A modified copy or the
thisobject
-
withExpression
Copy the current immutable object by setting a value for theexpressionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for expression- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableUpdateRowCanBeRemovedCommandthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:triggers,targetId,expression. -
toString
Prints the immutable valueUpdateRowCanBeRemovedCommandwith attribute values. -
of
public static ImmutableUpdateRowCanBeRemovedCommand of(ItemId targetId, Expression expression, List<Trigger<ItemState>> triggers) Construct a new immutableUpdateRowCanBeRemovedCommandinstance.- Parameters:
targetId- The value for thetargetIdattributeexpression- The value for theexpressionattributetriggers- The value for thetriggersattribute- Returns:
- An immutable UpdateRowCanBeRemovedCommand instance
-
of
public static ImmutableUpdateRowCanBeRemovedCommand of(ItemId targetId, Expression expression, Iterable<? extends Trigger<ItemState>> triggers) Construct a new immutableUpdateRowCanBeRemovedCommandinstance.- Parameters:
targetId- The value for thetargetIdattributeexpression- The value for theexpressionattributetriggers- The value for thetriggersattribute- Returns:
- An immutable UpdateRowCanBeRemovedCommand instance
-
copyOf
Creates an immutable copy of aUpdateRowCanBeRemovedCommandvalue. 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 UpdateRowCanBeRemovedCommand instance
-
builder
Creates a builder forImmutableUpdateRowCanBeRemovedCommand.ImmutableUpdateRowCanBeRemovedCommand.builder() .addTriggers|addAllTriggers(io.dialob.session.engine.session.command.Trigger<io.dialob.session.engine.session.model.ItemState>) //triggerselements .targetId(io.dialob.session.engine.session.model.ItemId) // requiredtargetId.expression(io.dialob.session.engine.program.model.Expression) // requiredexpression.build();- Returns:
- A new ImmutableUpdateRowCanBeRemovedCommand builder
-