public static final class ImmutableStart.Builder<D> extends Object
ImmutableStart.
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.
| Modifier and Type | Method and Description |
|---|---|
ImmutableStart.Builder<D> |
action(Supplier<State<D>> action)
Initializes the value for the
action attribute. |
ImmutableStart<D> |
build()
Builds a new
ImmutableStart. |
ImmutableStart.Builder<D> |
destination(StateID<D> destination)
Initializes the value for the
destination attribute. |
ImmutableStart.Builder<D> |
from(HasLabel instance)
Fill a builder with attribute values from the provided
de.flapdoodle.reverse.naming.HasLabel instance. |
ImmutableStart.Builder<D> |
from(Start<D> instance)
Fill a builder with attribute values from the provided
de.flapdoodle.reverse.transitions.Start instance. |
ImmutableStart.Builder<D> |
from(Transition<D> instance)
Fill a builder with attribute values from the provided
de.flapdoodle.reverse.Transition instance. |
ImmutableStart.Builder<D> |
transitionLabel(String transitionLabel)
Initializes the value for the
transitionLabel attribute. |
public final ImmutableStart.Builder<D> from(Start<D> instance)
de.flapdoodle.reverse.transitions.Start instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableStart.Builder<D> from(Transition<D> instance)
de.flapdoodle.reverse.Transition instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableStart.Builder<D> from(HasLabel instance)
de.flapdoodle.reverse.naming.HasLabel instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableStart.Builder<D> destination(StateID<D> destination)
destination attribute.destination - The value for destinationthis builder for use in a chained invocationpublic final ImmutableStart.Builder<D> action(Supplier<State<D>> action)
action attribute.action - The value for actionthis builder for use in a chained invocationpublic final ImmutableStart.Builder<D> transitionLabel(String transitionLabel)
transitionLabel attribute.
If not set, this attribute will have a default value as returned by the initializer of transitionLabel.
transitionLabel - The value for transitionLabelthis builder for use in a chained invocationpublic ImmutableStart<D> build()
ImmutableStart.IllegalStateException - if any required attributes are missingCopyright © 2023. All rights reserved.