Class ImmutableItemsChangedEvent.Builder
java.lang.Object
io.dialob.session.engine.session.command.event.ImmutableItemsChangedEvent.Builder
- Enclosing class:
ImmutableItemsChangedEvent
@Generated(from="ItemsChangedEvent",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableItemsChangedEvent.Builder
extends Object
Builds instances of type
ImmutableItemsChangedEvent.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableItemsChangedEvent.from(AttributeEvent instance) Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.event.AttributeEventinstance.from(GroupEvent instance) Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.event.GroupEventinstance.from(ItemsChangedEvent instance) Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.event.ItemsChangedEventinstance.target(TargetEvent target) Initializes the value for thetargetattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableItemsChangedEvent.Builder from(ItemsChangedEvent instance) Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.event.ItemsChangedEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.event.GroupEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.dialob.session.engine.session.command.event.AttributeEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
target
Initializes the value for thetargetattribute.- Parameters:
target- The value for target- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableItemsChangedEvent.- Returns:
- An immutable instance of ItemsChangedEvent
- Throws:
IllegalStateException- if any required attributes are missing
-