Package io.dialob.executor.command
Class ImmutableCreateRowGroupFromPrototypeCommand
- java.lang.Object
-
- io.dialob.executor.command.ImmutableCreateRowGroupFromPrototypeCommand
-
- All Implemented Interfaces:
Command<ItemStates>,CreateRowGroupFromPrototypeCommand,SessionUpdateCommand,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCreateRowGroupFromPrototypeCommand extends Object implements CreateRowGroupFromPrototypeCommand
Immutable implementation ofCreateRowGroupFromPrototypeCommand.Use the builder to create immutable instances:
ImmutableCreateRowGroupFromPrototypeCommand.builder(). Use the static factory method to create immutable instances:ImmutableCreateRowGroupFromPrototypeCommand.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCreateRowGroupFromPrototypeCommand.BuilderBuilds instances of typeImmutableCreateRowGroupFromPrototypeCommand.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCreateRowGroupFromPrototypeCommand.Builderbuilder()Creates a builder forImmutableCreateRowGroupFromPrototypeCommand.static ImmutableCreateRowGroupFromPrototypeCommandcopyOf(CreateRowGroupFromPrototypeCommand instance)Creates an immutable copy of aCreateRowGroupFromPrototypeCommandvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCreateRowGroupFromPrototypeCommandthat have equal attribute values.ItemIdgetItemPrototypeId()com.google.common.collect.ImmutableList<Trigger<ItemStates>>getTriggers()inthashCode()Computes a hash code from attributes:triggers,itemPrototypeId.static ImmutableCreateRowGroupFromPrototypeCommandof(ItemId itemPrototypeId, Iterable<? extends Trigger<ItemStates>> triggers)Construct a new immutableCreateRowGroupFromPrototypeCommandinstance.static ImmutableCreateRowGroupFromPrototypeCommandof(ItemId itemPrototypeId, List<Trigger<ItemStates>> triggers)Construct a new immutableCreateRowGroupFromPrototypeCommandinstance.StringtoString()Prints the immutable valueCreateRowGroupFromPrototypeCommandwith attribute values.ImmutableCreateRowGroupFromPrototypeCommandwithItemPrototypeId(ItemId value)Copy the current immutable object by setting a value for theitemPrototypeIdattribute.ImmutableCreateRowGroupFromPrototypeCommandwithTriggers(Trigger<ItemStates>... elements)Copy the current immutable object with elements that replace the content oftriggers.ImmutableCreateRowGroupFromPrototypeCommandwithTriggers(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.CreateRowGroupFromPrototypeCommand
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
-
getItemPrototypeId
public ItemId 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 of
thisobject
-
withItemPrototypeId
public final ImmutableCreateRowGroupFromPrototypeCommand 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 ofImmutableCreateRowGroupFromPrototypeCommandthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:triggers,itemPrototypeId.
-
toString
public String 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
public static ImmutableCreateRowGroupFromPrototypeCommand.Builder builder()
Creates a builder forImmutableCreateRowGroupFromPrototypeCommand.ImmutableCreateRowGroupFromPrototypeCommand.builder() .addTriggers|addAllTriggers(io.dialob.executor.command.Trigger<io.dialob.executor.model.ItemStates>) //triggerselements .itemPrototypeId(io.dialob.executor.model.ItemId) // requireditemPrototypeId.build();- Returns:
- A new ImmutableCreateRowGroupFromPrototypeCommand builder
-
-