Package io.dialob.executor.command.event
Class ImmutableRowGroupItemsInitEvent
- java.lang.Object
-
- io.dialob.executor.command.event.ImmutableRowGroupItemsInitEvent
-
- All Implemented Interfaces:
AttributeEvent,Event,GroupEvent,RowGroupItemsInitEvent,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRowGroupItemsInitEvent extends Object implements RowGroupItemsInitEvent
Immutable implementation ofRowGroupItemsInitEvent.Use the builder to create immutable instances:
ImmutableRowGroupItemsInitEvent.builder(). Use the static factory method to create immutable instances:ImmutableRowGroupItemsInitEvent.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRowGroupItemsInitEvent.BuilderBuilds instances of typeImmutableRowGroupItemsInitEvent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRowGroupItemsInitEvent.Builderbuilder()Creates a builder forImmutableRowGroupItemsInitEvent.static ImmutableRowGroupItemsInitEventcopyOf(RowGroupItemsInitEvent instance)Creates an immutable copy of aRowGroupItemsInitEventvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRowGroupItemsInitEventthat have equal attribute values.ItemIdgetGroupId()ItemIdgetPrototypeId()TargetEventgetTarget()inthashCode()Computes a hash code from attributes:target,groupId,prototypeId.static ImmutableRowGroupItemsInitEventof(ItemId groupId, ItemId prototypeId, TargetEvent target)Construct a new immutableRowGroupItemsInitEventinstance.StringtoString()Prints the immutable valueRowGroupItemsInitEventwith attribute values.ImmutableRowGroupItemsInitEventwithGroupId(ItemId value)Copy the current immutable object by setting a value for thegroupIdattribute.ImmutableRowGroupItemsInitEventwithPrototypeId(ItemId value)Copy the current immutable object by setting a value for theprototypeIdattribute.ImmutableRowGroupItemsInitEventwithTarget(TargetEvent value)Copy the current immutable object by setting a value for thetargetattribute.
-
-
-
Method Detail
-
getTarget
public TargetEvent getTarget()
- Specified by:
getTargetin interfaceAttributeEvent- Returns:
- The value of the
targetattribute
-
getGroupId
public ItemId getGroupId()
- Specified by:
getGroupIdin interfaceRowGroupItemsInitEvent- Returns:
- The value of the
groupIdattribute
-
getPrototypeId
public ItemId getPrototypeId()
- Specified by:
getPrototypeIdin interfaceRowGroupItemsInitEvent- Returns:
- The value of the
prototypeIdattribute
-
withTarget
public final ImmutableRowGroupItemsInitEvent withTarget(TargetEvent value)
Copy the current immutable object by setting a value for thetargetattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for target- Returns:
- A modified copy of the
thisobject
-
withGroupId
public final ImmutableRowGroupItemsInitEvent withGroupId(ItemId value)
Copy the current immutable object by setting a value for thegroupIdattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for groupId- Returns:
- A modified copy of the
thisobject
-
withPrototypeId
public final ImmutableRowGroupItemsInitEvent withPrototypeId(ItemId value)
Copy the current immutable object by setting a value for theprototypeIdattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for prototypeId- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableRowGroupItemsInitEventthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:target,groupId,prototypeId.
-
toString
public String toString()
Prints the immutable valueRowGroupItemsInitEventwith attribute values.
-
of
public static ImmutableRowGroupItemsInitEvent of(ItemId groupId, ItemId prototypeId, TargetEvent target)
Construct a new immutableRowGroupItemsInitEventinstance.- Parameters:
groupId- The value for thegroupIdattributeprototypeId- The value for theprototypeIdattributetarget- The value for thetargetattribute- Returns:
- An immutable RowGroupItemsInitEvent instance
-
copyOf
public static ImmutableRowGroupItemsInitEvent copyOf(RowGroupItemsInitEvent instance)
Creates an immutable copy of aRowGroupItemsInitEventvalue. 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 RowGroupItemsInitEvent instance
-
builder
public static ImmutableRowGroupItemsInitEvent.Builder builder()
Creates a builder forImmutableRowGroupItemsInitEvent.ImmutableRowGroupItemsInitEvent.builder() .target(io.dialob.executor.command.event.TargetEvent) // requiredtarget.groupId(io.dialob.executor.model.ItemId) // requiredgroupId.prototypeId(io.dialob.executor.model.ItemId) // requiredprototypeId.build();- Returns:
- A new ImmutableRowGroupItemsInitEvent builder
-
-