Class ImmutableCreateRowGroupFromPrototypeCommand
java.lang.Object
io.dialob.session.engine.session.command.ImmutableCreateRowGroupFromPrototypeCommand
- All Implemented Interfaces:
Command<ItemStates>,CreateRowGroupFromPrototypeCommand,SessionUpdateCommand,Serializable
@Generated(from="CreateRowGroupFromPrototypeCommand",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableCreateRowGroupFromPrototypeCommand
extends Object
implements CreateRowGroupFromPrototypeCommand
Immutable implementation of
CreateRowGroupFromPrototypeCommand.
Use the builder to create immutable instances:
ImmutableCreateRowGroupFromPrototypeCommand.builder().
Use the static factory method to create immutable instances:
ImmutableCreateRowGroupFromPrototypeCommand.of().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableCreateRowGroupFromPrototypeCommand. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableCreateRowGroupFromPrototypeCommand.copyOf(CreateRowGroupFromPrototypeCommand instance) Creates an immutable copy of aCreateRowGroupFromPrototypeCommandvalue.booleanThis instance is equal to all instances ofImmutableCreateRowGroupFromPrototypeCommandthat have equal attribute values.com.google.common.collect.ImmutableList<Trigger<ItemStates>> inthashCode()Computes a hash code from attributes:triggers,itemPrototypeId.of(ItemId itemPrototypeId, Iterable<? extends Trigger<ItemStates>> triggers) Construct a new immutableCreateRowGroupFromPrototypeCommandinstance.of(ItemId itemPrototypeId, List<Trigger<ItemStates>> triggers) Construct a new immutableCreateRowGroupFromPrototypeCommandinstance.toString()Prints the immutable valueCreateRowGroupFromPrototypeCommandwith attribute values.withItemPrototypeId(ItemId value) Copy the current immutable object by setting a value for theitemPrototypeIdattribute.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.CreateRowGroupFromPrototypeCommand
getEventMatchers, update
-
Method Details
-
getTriggers
- Specified by:
getTriggersin interfaceCommand<ItemStates>- Returns:
- The value of the
triggersattribute
-
getItemPrototypeId
- Specified by:
getItemPrototypeIdin interfaceCreateRowGroupFromPrototypeCommand- Returns:
- The value of the
itemPrototypeIdattribute
-
withTriggers
@SafeVarargs public final ImmutableCreateRowGroupFromPrototypeCommand 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 ImmutableCreateRowGroupFromPrototypeCommand 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
-
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 ofImmutableCreateRowGroupFromPrototypeCommandthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:triggers,itemPrototypeId. -
toString
Prints the immutable valueCreateRowGroupFromPrototypeCommandwith attribute values. -
of
public static ImmutableCreateRowGroupFromPrototypeCommand of(ItemId itemPrototypeId, List<Trigger<ItemStates>> triggers) Construct a new immutableCreateRowGroupFromPrototypeCommandinstance.- Parameters:
itemPrototypeId- The value for theitemPrototypeIdattributetriggers- The value for thetriggersattribute- Returns:
- An immutable CreateRowGroupFromPrototypeCommand instance
-
of
public static ImmutableCreateRowGroupFromPrototypeCommand of(ItemId itemPrototypeId, Iterable<? extends Trigger<ItemStates>> triggers) Construct a new immutableCreateRowGroupFromPrototypeCommandinstance.- Parameters:
itemPrototypeId- The value for theitemPrototypeIdattributetriggers- The value for thetriggersattribute- Returns:
- An immutable CreateRowGroupFromPrototypeCommand instance
-
copyOf
public static ImmutableCreateRowGroupFromPrototypeCommand copyOf(CreateRowGroupFromPrototypeCommand instance) Creates an immutable copy of aCreateRowGroupFromPrototypeCommandvalue. 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 CreateRowGroupFromPrototypeCommand instance
-
builder
Creates a builder forImmutableCreateRowGroupFromPrototypeCommand.ImmutableCreateRowGroupFromPrototypeCommand.builder() .addTriggers|addAllTriggers(io.dialob.session.engine.session.command.Trigger<io.dialob.session.engine.session.model.ItemStates>) //triggerselements .itemPrototypeId(io.dialob.session.engine.session.model.ItemId) // requireditemPrototypeId.build();- Returns:
- A new ImmutableCreateRowGroupFromPrototypeCommand builder
-