Class ImmutableRowGroupItemsInitEvent
java.lang.Object
io.dialob.session.engine.session.command.event.ImmutableRowGroupItemsInitEvent
- All Implemented Interfaces:
AttributeEvent,Event,GroupEvent,RowGroupItemsInitEvent,Serializable
@Generated(from="RowGroupItemsInitEvent",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableRowGroupItemsInitEvent
extends Object
implements RowGroupItemsInitEvent
Immutable implementation of
RowGroupItemsInitEvent.
Use the builder to create immutable instances:
ImmutableRowGroupItemsInitEvent.builder().
Use the static factory method to create immutable instances:
ImmutableRowGroupItemsInitEvent.of().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableRowGroupItemsInitEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableRowGroupItemsInitEvent.copyOf(RowGroupItemsInitEvent instance) Creates an immutable copy of aRowGroupItemsInitEventvalue.booleanThis instance is equal to all instances ofImmutableRowGroupItemsInitEventthat have equal attribute values.inthashCode()Computes a hash code from attributes:target,groupId,prototypeId.of(ItemId groupId, ItemId prototypeId, TargetEvent target) Construct a new immutableRowGroupItemsInitEventinstance.toString()Prints the immutable valueRowGroupItemsInitEventwith attribute values.withGroupId(ItemId value) Copy the current immutable object by setting a value for thegroupIdattribute.withPrototypeId(ItemId value) Copy the current immutable object by setting a value for theprototypeIdattribute.withTarget(TargetEvent value) Copy the current immutable object by setting a value for thetargetattribute.
-
Method Details
-
getTarget
- Specified by:
getTargetin interfaceAttributeEvent- Returns:
- The value of the
targetattribute
-
getGroupId
- Specified by:
getGroupIdin interfaceRowGroupItemsInitEvent- Returns:
- The value of the
groupIdattribute
-
getPrototypeId
- Specified by:
getPrototypeIdin interfaceRowGroupItemsInitEvent- Returns:
- The value of the
prototypeIdattribute
-
withTarget
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 or the
thisobject
-
withGroupId
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 or the
thisobject
-
withPrototypeId
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 or the
thisobject
-
equals
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
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
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
Creates a builder forImmutableRowGroupItemsInitEvent.ImmutableRowGroupItemsInitEvent.builder() .target(io.dialob.session.engine.session.command.event.TargetEvent) // requiredtarget.groupId(io.dialob.session.engine.session.model.ItemId) // requiredgroupId.prototypeId(io.dialob.session.engine.session.model.ItemId) // requiredprototypeId.build();- Returns:
- A new ImmutableRowGroupItemsInitEvent builder
-