Package io.dialob.executor.command
Class ImmutableCreateRowGroupItemsFromPrototypeCommand
- java.lang.Object
-
- io.dialob.executor.command.ImmutableCreateRowGroupItemsFromPrototypeCommand
-
- All Implemented Interfaces:
Command<ItemStates>,CreateRowGroupItemsFromPrototypeCommand,SessionUpdateCommand,UpdateCommand<ItemId,ItemStates>,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCreateRowGroupItemsFromPrototypeCommand extends Object implements CreateRowGroupItemsFromPrototypeCommand
Immutable implementation ofCreateRowGroupItemsFromPrototypeCommand.Use the builder to create immutable instances:
ImmutableCreateRowGroupItemsFromPrototypeCommand.builder(). Use the static factory method to create immutable instances:ImmutableCreateRowGroupItemsFromPrototypeCommand.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCreateRowGroupItemsFromPrototypeCommand.BuilderBuilds instances of typeImmutableCreateRowGroupItemsFromPrototypeCommand.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCreateRowGroupItemsFromPrototypeCommand.Builderbuilder()Creates a builder forImmutableCreateRowGroupItemsFromPrototypeCommand.static ImmutableCreateRowGroupItemsFromPrototypeCommandcopyOf(CreateRowGroupItemsFromPrototypeCommand instance)Creates an immutable copy of aCreateRowGroupItemsFromPrototypeCommandvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCreateRowGroupItemsFromPrototypeCommandthat have equal attribute values.ItemIdgetItemPrototypeId()ItemIdgetTargetId()com.google.common.collect.ImmutableList<Trigger<ItemStates>>getTriggers()inthashCode()Computes a hash code from attributes:triggers,targetId,itemPrototypeId.static ImmutableCreateRowGroupItemsFromPrototypeCommandof(ItemId targetId, ItemId itemPrototypeId, Iterable<? extends Trigger<ItemStates>> triggers)Construct a new immutableCreateRowGroupItemsFromPrototypeCommandinstance.static ImmutableCreateRowGroupItemsFromPrototypeCommandof(ItemId targetId, ItemId itemPrototypeId, List<Trigger<ItemStates>> triggers)Construct a new immutableCreateRowGroupItemsFromPrototypeCommandinstance.StringtoString()Prints the immutable valueCreateRowGroupItemsFromPrototypeCommandwith attribute values.ImmutableCreateRowGroupItemsFromPrototypeCommandwithItemPrototypeId(ItemId value)Copy the current immutable object by setting a value for theitemPrototypeIdattribute.ImmutableCreateRowGroupItemsFromPrototypeCommandwithTargetId(ItemId value)Copy the current immutable object by setting a value for thetargetIdattribute.ImmutableCreateRowGroupItemsFromPrototypeCommandwithTriggers(Trigger<ItemStates>... elements)Copy the current immutable object with elements that replace the content oftriggers.ImmutableCreateRowGroupItemsFromPrototypeCommandwithTriggers(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, wait
-
Methods inherited from interface io.dialob.executor.command.CreateRowGroupItemsFromPrototypeCommand
getEventMatchers, update
-
-
-
-
Method Detail
-
getTriggers
public com.google.common.collect.ImmutableList<Trigger<ItemStates>> getTriggers()
- Specified by:
getTriggersin interfaceCommand<ItemStates>- Returns:
- The value of the
triggersattribute
-
getTargetId
public ItemId getTargetId()
- Specified by:
getTargetIdin interfaceUpdateCommand<ItemId,ItemStates>- Returns:
- The value of the
targetIdattribute
-
getItemPrototypeId
public ItemId 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 of
thisobject
-
withTargetId
public final ImmutableCreateRowGroupItemsFromPrototypeCommand 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,ItemStates>- Parameters:
value- A new value for targetId- Returns:
- A modified copy of the
thisobject
-
withItemPrototypeId
public final ImmutableCreateRowGroupItemsFromPrototypeCommand withItemPrototypeId(ItemId value)
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 of the
thisobject
-
equals
public boolean equals(@Nullable Object another)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
public String 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
public static ImmutableCreateRowGroupItemsFromPrototypeCommand.Builder builder()
Creates a builder forImmutableCreateRowGroupItemsFromPrototypeCommand.ImmutableCreateRowGroupItemsFromPrototypeCommand.builder() .addTriggers|addAllTriggers(io.dialob.executor.command.Trigger<io.dialob.executor.model.ItemStates>) //triggerselements .targetId(io.dialob.executor.model.ItemId) // requiredtargetId.itemPrototypeId(io.dialob.executor.model.ItemId) // requireditemPrototypeId.build();- Returns:
- A new ImmutableCreateRowGroupItemsFromPrototypeCommand builder
-
-