Class ImmutableValidationDisabledUpdateCommand
java.lang.Object
io.dialob.session.engine.session.command.ImmutableValidationDisabledUpdateCommand
- All Implemented Interfaces:
Command<ErrorState>,ErrorUpdateCommand,UpdateCommand<ErrorId,,ErrorState> ValidationDisabledUpdateCommand,Serializable
@Generated(from="ValidationDisabledUpdateCommand",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableValidationDisabledUpdateCommand
extends Object
implements ValidationDisabledUpdateCommand
Immutable implementation of
ValidationDisabledUpdateCommand.
Use the builder to create immutable instances:
ImmutableValidationDisabledUpdateCommand.builder().
Use the static factory method to create immutable instances:
ImmutableValidationDisabledUpdateCommand.of().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableValidationDisabledUpdateCommand. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableValidationDisabledUpdateCommand.copyOf(ValidationDisabledUpdateCommand instance) Creates an immutable copy of aValidationDisabledUpdateCommandvalue.booleanThis instance is equal to all instances ofImmutableValidationDisabledUpdateCommandthat have equal attribute values.com.google.common.collect.ImmutableList<Trigger<ErrorState>> inthashCode()Computes a hash code from attributes:triggers,targetId,expression.of(ErrorId targetId, Expression expression, Iterable<? extends Trigger<ErrorState>> triggers) Construct a new immutableValidationDisabledUpdateCommandinstance.of(ErrorId targetId, Expression expression, List<Trigger<ErrorState>> triggers) Construct a new immutableValidationDisabledUpdateCommandinstance.toString()Prints the immutable valueValidationDisabledUpdateCommandwith attribute values.withExpression(Expression value) Copy the current immutable object by setting a value for theexpressionattribute.withTargetId(ErrorId value) Copy the current immutable object by setting a value for thetargetIdattribute.withTriggers(Trigger<ErrorState>... elements) Copy the current immutable object with elements that replace the content oftriggers.withTriggers(Iterable<? extends Trigger<ErrorState>> 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.ErrorUpdateCommand
getEventMatchersMethods inherited from interface io.dialob.session.engine.session.command.ValidationDisabledUpdateCommand
update
-
Method Details
-
getTriggers
- Specified by:
getTriggersin interfaceCommand<ErrorState>- Returns:
- The value of the
triggersattribute
-
getTargetId
- Specified by:
getTargetIdin interfaceUpdateCommand<ErrorId,ErrorState> - Returns:
- The value of the
targetIdattribute
-
getExpression
- Specified by:
getExpressionin interfaceErrorUpdateCommand- Returns:
- The value of the
expressionattribute
-
withTriggers
@SafeVarargs public final ImmutableValidationDisabledUpdateCommand withTriggers(Trigger<ErrorState>... 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 ImmutableValidationDisabledUpdateCommand withTriggers(Iterable<? extends Trigger<ErrorState>> 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<ErrorId,ErrorState> - 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 ofImmutableValidationDisabledUpdateCommandthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:triggers,targetId,expression. -
toString
Prints the immutable valueValidationDisabledUpdateCommandwith attribute values. -
of
public static ImmutableValidationDisabledUpdateCommand of(ErrorId targetId, Expression expression, List<Trigger<ErrorState>> triggers) Construct a new immutableValidationDisabledUpdateCommandinstance.- Parameters:
targetId- The value for thetargetIdattributeexpression- The value for theexpressionattributetriggers- The value for thetriggersattribute- Returns:
- An immutable ValidationDisabledUpdateCommand instance
-
of
public static ImmutableValidationDisabledUpdateCommand of(ErrorId targetId, Expression expression, Iterable<? extends Trigger<ErrorState>> triggers) Construct a new immutableValidationDisabledUpdateCommandinstance.- Parameters:
targetId- The value for thetargetIdattributeexpression- The value for theexpressionattributetriggers- The value for thetriggersattribute- Returns:
- An immutable ValidationDisabledUpdateCommand instance
-
copyOf
public static ImmutableValidationDisabledUpdateCommand copyOf(ValidationDisabledUpdateCommand instance) Creates an immutable copy of aValidationDisabledUpdateCommandvalue. 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 ValidationDisabledUpdateCommand instance
-
builder
Creates a builder forImmutableValidationDisabledUpdateCommand.ImmutableValidationDisabledUpdateCommand.builder() .addTriggers|addAllTriggers(io.dialob.session.engine.session.command.Trigger<io.dialob.session.engine.session.model.ErrorState>) //triggerselements .targetId(io.dialob.session.engine.session.model.ErrorId) // requiredtargetId.expression(io.dialob.session.engine.program.model.Expression) // requiredexpression.build();- Returns:
- A new ImmutableValidationDisabledUpdateCommand builder
-