Class ImmutableUpdateRowsCanBeAddedCommand
- java.lang.Object
-
- io.dialob.session.engine.session.command.ImmutableUpdateRowsCanBeAddedCommand
-
- All Implemented Interfaces:
AbstractUpdateAttributeCommand<Boolean>,AbstractUpdateBooleanAttributeCommand,AbstractUpdateCommand<ItemId,ItemState>,Command<ItemState>,ItemUpdateCommand,UpdateCommand<ItemId,ItemState>,UpdateRowsCanBeAddedCommand,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableUpdateRowsCanBeAddedCommand extends Object implements UpdateRowsCanBeAddedCommand
Immutable implementation ofUpdateRowsCanBeAddedCommand.Use the builder to create immutable instances:
ImmutableUpdateRowsCanBeAddedCommand.builder(). Use the static factory method to create immutable instances:ImmutableUpdateRowsCanBeAddedCommand.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableUpdateRowsCanBeAddedCommand.BuilderBuilds instances of typeImmutableUpdateRowsCanBeAddedCommand.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableUpdateRowsCanBeAddedCommand.Builderbuilder()Creates a builder forImmutableUpdateRowsCanBeAddedCommand.static ImmutableUpdateRowsCanBeAddedCommandcopyOf(UpdateRowsCanBeAddedCommand instance)Creates an immutable copy of aUpdateRowsCanBeAddedCommandvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableUpdateRowsCanBeAddedCommandthat have equal attribute values.ExpressiongetExpression()ItemIdgetTargetId()com.google.common.collect.ImmutableList<Trigger<ItemState>>getTriggers()inthashCode()Computes a hash code from attributes:triggers,targetId,expression.static ImmutableUpdateRowsCanBeAddedCommandof(ItemId targetId, Expression expression, Iterable<? extends Trigger<ItemState>> triggers)Construct a new immutableUpdateRowsCanBeAddedCommandinstance.static ImmutableUpdateRowsCanBeAddedCommandof(ItemId targetId, Expression expression, List<Trigger<ItemState>> triggers)Construct a new immutableUpdateRowsCanBeAddedCommandinstance.StringtoString()Prints the immutable valueUpdateRowsCanBeAddedCommandwith attribute values.ImmutableUpdateRowsCanBeAddedCommandwithExpression(Expression value)Copy the current immutable object by setting a value for theexpressionattribute.ImmutableUpdateRowsCanBeAddedCommandwithTargetId(ItemId value)Copy the current immutable object by setting a value for thetargetIdattribute.ImmutableUpdateRowsCanBeAddedCommandwithTriggers(Trigger<ItemState>... elements)Copy the current immutable object with elements that replace the content oftriggers.ImmutableUpdateRowsCanBeAddedCommandwithTriggers(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, wait
-
Methods inherited from interface io.dialob.session.engine.session.command.AbstractUpdateAttributeCommand
getEventMatchers
-
Methods inherited from interface io.dialob.session.engine.session.command.AbstractUpdateBooleanAttributeCommand
evalExpression
-
Methods inherited from interface io.dialob.session.engine.session.command.UpdateRowsCanBeAddedCommand
update
-
-
-
-
Method Detail
-
getTriggers
public com.google.common.collect.ImmutableList<Trigger<ItemState>> getTriggers()
- Specified by:
getTriggersin interfaceCommand<ItemState>- Returns:
- The value of the
triggersattribute
-
getTargetId
public ItemId getTargetId()
- Specified by:
getTargetIdin interfaceUpdateCommand<ItemId,ItemState>- Returns:
- The value of the
targetIdattribute
-
getExpression
public Expression getExpression()
- Specified by:
getExpressionin interfaceAbstractUpdateAttributeCommand<Boolean>- Returns:
- The value of the
expressionattribute
-
withTriggers
@SafeVarargs public final ImmutableUpdateRowsCanBeAddedCommand 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 ImmutableUpdateRowsCanBeAddedCommand 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 of
thisobject
-
withTargetId
public final ImmutableUpdateRowsCanBeAddedCommand withTargetId(ItemId value)
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 of the
thisobject
-
withExpression
public final ImmutableUpdateRowsCanBeAddedCommand withExpression(Expression value)
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 of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableUpdateRowsCanBeAddedCommandthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:triggers,targetId,expression.
-
toString
public String toString()
Prints the immutable valueUpdateRowsCanBeAddedCommandwith attribute values.
-
of
public static ImmutableUpdateRowsCanBeAddedCommand of(ItemId targetId, Expression expression, List<Trigger<ItemState>> triggers)
Construct a new immutableUpdateRowsCanBeAddedCommandinstance.- Parameters:
targetId- The value for thetargetIdattributeexpression- The value for theexpressionattributetriggers- The value for thetriggersattribute- Returns:
- An immutable UpdateRowsCanBeAddedCommand instance
-
of
public static ImmutableUpdateRowsCanBeAddedCommand of(ItemId targetId, Expression expression, Iterable<? extends Trigger<ItemState>> triggers)
Construct a new immutableUpdateRowsCanBeAddedCommandinstance.- Parameters:
targetId- The value for thetargetIdattributeexpression- The value for theexpressionattributetriggers- The value for thetriggersattribute- Returns:
- An immutable UpdateRowsCanBeAddedCommand instance
-
copyOf
public static ImmutableUpdateRowsCanBeAddedCommand copyOf(UpdateRowsCanBeAddedCommand instance)
Creates an immutable copy of aUpdateRowsCanBeAddedCommandvalue. 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 UpdateRowsCanBeAddedCommand instance
-
builder
public static ImmutableUpdateRowsCanBeAddedCommand.Builder builder()
Creates a builder forImmutableUpdateRowsCanBeAddedCommand.ImmutableUpdateRowsCanBeAddedCommand.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 ImmutableUpdateRowsCanBeAddedCommand builder
-
-