Class ImmutableCreateRowGroupItemsFromPrototypeCommand
java.lang.Object
io.dialob.session.engine.session.command.ImmutableCreateRowGroupItemsFromPrototypeCommand
- All Implemented Interfaces:
Command<ItemStates>,CreateRowGroupItemsFromPrototypeCommand,SessionUpdateCommand,UpdateCommand<ItemId,,ItemStates> Serializable
@Generated(from="CreateRowGroupItemsFromPrototypeCommand",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableCreateRowGroupItemsFromPrototypeCommand
extends Object
implements CreateRowGroupItemsFromPrototypeCommand
Immutable implementation of
CreateRowGroupItemsFromPrototypeCommand.
Use the builder to create immutable instances:
ImmutableCreateRowGroupItemsFromPrototypeCommand.builder().
Use the static factory method to create immutable instances:
ImmutableCreateRowGroupItemsFromPrototypeCommand.of().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableCreateRowGroupItemsFromPrototypeCommand. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableCreateRowGroupItemsFromPrototypeCommand.Creates an immutable copy of aCreateRowGroupItemsFromPrototypeCommandvalue.booleanThis instance is equal to all instances ofImmutableCreateRowGroupItemsFromPrototypeCommandthat have equal attribute values.com.google.common.collect.ImmutableList<Trigger<ItemStates>> inthashCode()Computes a hash code from attributes:triggers,targetId,itemPrototypeId.Construct a new immutableCreateRowGroupItemsFromPrototypeCommandinstance.Construct a new immutableCreateRowGroupItemsFromPrototypeCommandinstance.toString()Prints the immutable valueCreateRowGroupItemsFromPrototypeCommandwith attribute values.withItemPrototypeId(ItemId value) Copy the current immutable object by setting a value for theitemPrototypeIdattribute.withTargetId(ItemId value) Copy the current immutable object by setting a value for thetargetIdattribute.withTriggers(Trigger<ItemStates>... elements) Copy the current immutable object with elements that replace the content oftriggers.withTriggers(Iterable<? extends Trigger<ItemStates>> 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.CreateRowGroupItemsFromPrototypeCommand
getEventMatchers, update
-
Method Details
-
getTriggers
- Specified by:
getTriggersin interfaceCommand<ItemStates>- Returns:
- The value of the
triggersattribute
-
getTargetId
- Specified by:
getTargetIdin interfaceUpdateCommand<ItemId,ItemStates> - Returns:
- The value of the
targetIdattribute
-
getItemPrototypeId
- Specified by:
getItemPrototypeIdin interfaceCreateRowGroupItemsFromPrototypeCommand- Returns:
- The value of the
itemPrototypeIdattribute
-
withTriggers
@SafeVarargs public final ImmutableCreateRowGroupItemsFromPrototypeCommand withTriggers(Trigger<ItemStates>... 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 ImmutableCreateRowGroupItemsFromPrototypeCommand withTriggers(Iterable<? extends Trigger<ItemStates>> 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,ItemStates> - Parameters:
value- A new value for targetId- Returns:
- A modified copy or the
thisobject
-
withItemPrototypeId
Copy the current immutable object by setting a value for theitemPrototypeIdattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for itemPrototypeId- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableCreateRowGroupItemsFromPrototypeCommandthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:triggers,targetId,itemPrototypeId. -
toString
Prints the immutable valueCreateRowGroupItemsFromPrototypeCommandwith attribute values. -
of
public static ImmutableCreateRowGroupItemsFromPrototypeCommand of(ItemId targetId, ItemId itemPrototypeId, List<Trigger<ItemStates>> triggers) Construct a new immutableCreateRowGroupItemsFromPrototypeCommandinstance.- Parameters:
targetId- The value for thetargetIdattributeitemPrototypeId- The value for theitemPrototypeIdattributetriggers- The value for thetriggersattribute- Returns:
- An immutable CreateRowGroupItemsFromPrototypeCommand instance
-
of
public static ImmutableCreateRowGroupItemsFromPrototypeCommand of(ItemId targetId, ItemId itemPrototypeId, Iterable<? extends Trigger<ItemStates>> triggers) Construct a new immutableCreateRowGroupItemsFromPrototypeCommandinstance.- Parameters:
targetId- The value for thetargetIdattributeitemPrototypeId- The value for theitemPrototypeIdattributetriggers- The value for thetriggersattribute- Returns:
- An immutable CreateRowGroupItemsFromPrototypeCommand instance
-
copyOf
public static ImmutableCreateRowGroupItemsFromPrototypeCommand copyOf(CreateRowGroupItemsFromPrototypeCommand instance) Creates an immutable copy of aCreateRowGroupItemsFromPrototypeCommandvalue. 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 CreateRowGroupItemsFromPrototypeCommand instance
-
builder
Creates a builder forImmutableCreateRowGroupItemsFromPrototypeCommand.ImmutableCreateRowGroupItemsFromPrototypeCommand.builder() .addTriggers|addAllTriggers(io.dialob.session.engine.session.command.Trigger<io.dialob.session.engine.session.model.ItemStates>) //triggerselements .targetId(io.dialob.session.engine.session.model.ItemId) // requiredtargetId.itemPrototypeId(io.dialob.session.engine.session.model.ItemId) // requireditemPrototypeId.build();- Returns:
- A new ImmutableCreateRowGroupItemsFromPrototypeCommand builder
-