@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableStart<D> extends Start<D>
Start.
Use the builder to create immutable instances:
ImmutableStart.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableStart.Builder<D>
Builds instances of type
ImmutableStart. |
Start.WithDestination<T>| Modifier and Type | Method and Description |
|---|---|
protected Supplier<State<D>> |
action() |
static <D> ImmutableStart.Builder<D> |
builder()
Creates a builder for
ImmutableStart. |
static <D> ImmutableStart<D> |
copyOf(Start<D> instance)
Creates an immutable copy of a
Start value. |
StateID<D> |
destination() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableStart that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
destination, action, transitionLabel. |
Set<StateID<?>> |
sources()
Returns a lazily initialized value of the
sources attribute. |
String |
toString()
Prints the immutable value
Start with attribute values. |
String |
transitionLabel() |
ImmutableStart<D> |
withAction(Supplier<State<D>> value)
Copy the current immutable object by setting a value for the
action attribute. |
ImmutableStart<D> |
withDestination(StateID<D> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableStart<D> |
withTransitionLabel(String value)
Copy the current immutable object by setting a value for the
transitionLabel attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitasLabelpublic StateID<D> destination()
destination in interface Transition<D>destination in class Start<D>destination attributepublic String transitionLabel()
transitionLabel in interface HasLabeltransitionLabel in class Start<D>transitionLabel attributepublic final ImmutableStart<D> withDestination(StateID<D> value)
destination attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for destinationthis objectpublic final ImmutableStart<D> withAction(Supplier<State<D>> value)
action attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for actionthis objectpublic final ImmutableStart<D> withTransitionLabel(String value)
transitionLabel attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for transitionLabelthis objectpublic boolean equals(Object another)
ImmutableStart that have equal attribute values.public int hashCode()
destination, action, transitionLabel.public String toString()
Start with attribute values.public Set<StateID<?>> sources()
Returns a lazily initialized value of the sources attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
In case of any exception or error thrown by the lazy value initializer,
the result will not be memoised (i.e. remembered) and on next call computation
will be attempted again.
public static <D> ImmutableStart<D> copyOf(Start<D> instance)
Start value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.D - generic parameter Dinstance - The instance to copypublic static <D> ImmutableStart.Builder<D> builder()
ImmutableStart.
ImmutableStart.<D>builder()
.destination(de.flapdoodle.reverse.StateID<D>) // required destination
.action(function.Supplier<de.flapdoodle.reverse.State<D>>) // required action
.transitionLabel(String) // optional transitionLabel
.build();
D - generic parameter DCopyright © 2025. All rights reserved.