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