public static final class ImmutableDerive.Builder<S,D> extends Object
ImmutableDerive.
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 |
|---|---|
ImmutableDerive.Builder<S,D> |
action(Function<S,State<D>> action)
Initializes the value for the
action attribute. |
ImmutableDerive<S,D> |
build()
Builds a new
ImmutableDerive. |
ImmutableDerive.Builder<S,D> |
destination(StateID<D> destination)
Initializes the value for the
destination attribute. |
ImmutableDerive.Builder<S,D> |
from(Derive<S,D> instance)
Fill a builder with attribute values from the provided
de.flapdoodle.reverse.transitions.Derive instance. |
ImmutableDerive.Builder<S,D> |
from(HasLabel instance)
Fill a builder with attribute values from the provided
de.flapdoodle.reverse.naming.HasLabel instance. |
ImmutableDerive.Builder<S,D> |
source(StateID<S> source)
Initializes the value for the
source attribute. |
ImmutableDerive.Builder<S,D> |
transitionLabel(String transitionLabel)
Initializes the value for the
transitionLabel attribute. |
public final ImmutableDerive.Builder<S,D> from(Derive<S,D> instance)
de.flapdoodle.reverse.transitions.Derive instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableDerive.Builder<S,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 ImmutableDerive.Builder<S,D> source(StateID<S> source)
source attribute.source - The value for sourcethis builder for use in a chained invocationpublic final ImmutableDerive.Builder<S,D> destination(StateID<D> destination)
destination attribute.destination - The value for destinationthis builder for use in a chained invocationpublic final ImmutableDerive.Builder<S,D> action(Function<S,State<D>> action)
action attribute.action - The value for actionthis builder for use in a chained invocationpublic final ImmutableDerive.Builder<S,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 ImmutableDerive<S,D> build()
ImmutableDerive.IllegalStateException - if any required attributes are missingCopyright © 2025. All rights reserved.