@Value.Immutable public abstract class Derive<S,D> extends Object implements Transition<D>, HasLabel
| Modifier and Type | Class and Description |
|---|---|
static class |
Derive.WithSource<S> |
static class |
Derive.WithSourceAndDestination<S,D> |
| Constructor and Description |
|---|
Derive() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Function<S,State<D>> |
action() |
abstract StateID<D> |
destination() |
static <D> Derive.WithSource<D> |
given(Class<D> sourceType) |
static <D> Derive.WithSource<D> |
given(StateID<D> source) |
static <S,D> ImmutableDerive<S,D> |
of(StateID<S> source,
StateID<D> dest,
Function<S,State<D>> action) |
State<D> |
result(StateLookup lookup) |
abstract StateID<S> |
source() |
Set<StateID<?>> |
sources() |
String |
transitionLabel() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasLabelpublic abstract StateID<D> destination()
destination in interface Transition<D>@Value.Default public String transitionLabel()
transitionLabel in interface HasLabel@Value.Lazy public Set<StateID<?>> sources()
sources in interface Transition<D>@Value.Auxiliary public State<D> result(StateLookup lookup)
result in interface Transition<D>public static <S,D> ImmutableDerive<S,D> of(StateID<S> source, StateID<D> dest, Function<S,State<D>> action)
public static <D> Derive.WithSource<D> given(StateID<D> source)
public static <D> Derive.WithSource<D> given(Class<D> sourceType)
Copyright © 2023. All rights reserved.