Package io.dialob.executor.command
Class ImmutableGotoPage.Builder
- java.lang.Object
-
- io.dialob.executor.command.ImmutableGotoPage.Builder
-
- Enclosing class:
- ImmutableGotoPage
@NotThreadSafe public static final class ImmutableGotoPage.Builder extends Object
Builds instances of typeImmutableGotoPage. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableGotoPage.BuilderaddAllTriggers(Iterable<? extends Trigger<ItemState>> elements)Adds elements totriggerslist.ImmutableGotoPage.BuilderaddTriggers(Trigger<ItemState> element)Adds one element totriggerslist.ImmutableGotoPage.BuilderaddTriggers(Trigger<ItemState>... elements)Adds elements totriggerslist.ImmutableGotoPagebuild()Builds a newImmutableGotoPage.ImmutableGotoPage.Builderfrom(io.dialob.executor.command.AbstractPageCommand instance)Fill a builder with attribute values from the providedio.dialob.executor.command.AbstractPageCommandinstance.ImmutableGotoPage.Builderfrom(GotoPage instance)Fill a builder with attribute values from the providedio.dialob.executor.command.GotoPageinstance.ImmutableGotoPage.Builderpage(ItemId page)Initializes the value for thepageattribute.ImmutableGotoPage.BuildertargetId(ItemId targetId)Initializes the value for thetargetIdattribute.ImmutableGotoPage.Buildertriggers(Iterable<? extends Trigger<ItemState>> elements)Sets or replaces all elements fortriggerslist.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableGotoPage.Builder from(GotoPage instance)
Fill a builder with attribute values from the providedio.dialob.executor.command.GotoPageinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableGotoPage.Builder from(io.dialob.executor.command.AbstractPageCommand instance)
Fill a builder with attribute values from the providedio.dialob.executor.command.AbstractPageCommandinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addTriggers
@CanIgnoreReturnValue public final ImmutableGotoPage.Builder addTriggers(Trigger<ItemState> element)
Adds one element totriggerslist.- Parameters:
element- A triggers element- Returns:
thisbuilder for use in a chained invocation
-
addTriggers
@CanIgnoreReturnValue @SafeVarargs public final ImmutableGotoPage.Builder addTriggers(Trigger<ItemState>... elements)
Adds elements totriggerslist.- Parameters:
elements- An array of triggers elements- Returns:
thisbuilder for use in a chained invocation
-
triggers
@CanIgnoreReturnValue public final ImmutableGotoPage.Builder triggers(Iterable<? extends Trigger<ItemState>> elements)
Sets or replaces all elements fortriggerslist.- Parameters:
elements- An iterable of triggers elements- Returns:
thisbuilder for use in a chained invocation
-
addAllTriggers
@CanIgnoreReturnValue public final ImmutableGotoPage.Builder addAllTriggers(Iterable<? extends Trigger<ItemState>> elements)
Adds elements totriggerslist.- Parameters:
elements- An iterable of triggers elements- Returns:
thisbuilder for use in a chained invocation
-
targetId
@CanIgnoreReturnValue public final ImmutableGotoPage.Builder targetId(ItemId targetId)
Initializes the value for thetargetIdattribute.If not set, this attribute will have a default value as returned by the initializer of
targetId.- Parameters:
targetId- The value for targetId- Returns:
thisbuilder for use in a chained invocation
-
page
@CanIgnoreReturnValue public final ImmutableGotoPage.Builder page(ItemId page)
Initializes the value for thepageattribute.- Parameters:
page- The value for page- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableGotoPage build()
Builds a newImmutableGotoPage.- Returns:
- An immutable instance of GotoPage
- Throws:
IllegalStateException- if any required attributes are missing
-
-