| Package | Description |
|---|---|
| de.flapdoodle.reverse | |
| de.flapdoodle.reverse.graph | |
| de.flapdoodle.reverse.transitions |
| Modifier and Type | Class and Description |
|---|---|
class |
ImmutableStateID<T>
Immutable implementation of
StateID. |
| Modifier and Type | Method and Description |
|---|---|
StateID<T> |
ImmutableStateMapping.destination() |
StateID<D> |
Transition.destination() |
abstract StateID<T> |
StateMapping.destination() |
protected <T> StateID<T> |
TransitionMapping.destinationOf(StateID<T> source) |
static <T> StateID<T> |
StateID.of(Class<T> type) |
static <T> StateID<T> |
StateID.of(String name,
Class<T> type) |
static <T> StateID<T> |
StateID.of(String name,
de.flapdoodle.reflection.TypeInfo<T> type) |
static <T> StateID<T> |
StateID.of(de.flapdoodle.reflection.TypeInfo<T> type) |
StateID<T> |
ImmutableStateMapping.source() |
abstract StateID<T> |
StateMapping.source() |
protected <T> StateID<T> |
TransitionMapping.sourceOf(StateID<T> destination) |
StateID<T> |
ImmutableStateListener.type() |
StateID<T> |
Listener.StateListener.type() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> Optional<StateID<T>> |
TransitionMapping.findDestinationOf(StateID<T> source) |
protected <T> Optional<StateID<T>> |
TransitionMapping.findSourceOf(StateID<T> destination) |
protected Optional<BiConsumer<StateID<?>,Object>> |
ImmutableSimple.onStateReached() |
protected abstract Optional<BiConsumer<StateID<?>,Object>> |
Listener.Simple.onStateReached() |
protected Optional<BiConsumer<StateID<?>,Object>> |
ImmutableSimple.onTearDown() |
protected abstract Optional<BiConsumer<StateID<?>,Object>> |
Listener.Simple.onTearDown() |
static Set<StateID<?>> |
StateID.setOf(StateID<?>... namedTypes) |
Set<StateID<?>> |
Transition.sources() |
protected Map<StateID<?>,Consumer<?>> |
ImmutableTypedListener.stateReachedListenerAsMap()
Returns a lazily initialized value of the
stateReachedListenerAsMap attribute. |
protected Map<StateID<?>,Consumer<?>> |
Listener.TypedListener.stateReachedListenerAsMap() |
protected Map<StateID<?>,Consumer<?>> |
ImmutableTypedListener.stateTearDownListenerAsMap()
Returns a lazily initialized value of the
stateTearDownListenerAsMap attribute. |
protected Map<StateID<?>,Consumer<?>> |
Listener.TypedListener.stateTearDownListenerAsMap() |
| Modifier and Type | Method and Description |
|---|---|
static String |
StateID.asLabel(StateID<?> t) |
static <D> ImmutableTransitionMapping.Builder<D> |
TransitionMapping.builder(String label,
StateID<D> destination) |
static <T> ImmutableStateID<T> |
ImmutableStateID.copyOf(StateID<T> instance)
Creates an immutable copy of a
StateID value. |
ImmutableStateMapping.Builder<T> |
ImmutableStateMapping.Builder.destination(StateID<T> destination)
Initializes the value for the
destination attribute. |
protected <T> StateID<T> |
TransitionMapping.destinationOf(StateID<T> source) |
protected <T> Optional<StateID<T>> |
TransitionMapping.findDestinationOf(StateID<T> source) |
protected <T> Optional<StateID<T>> |
TransitionMapping.findSourceOf(StateID<T> destination) |
ImmutableStateID.Builder<T> |
ImmutableStateID.Builder.from(StateID<T> instance)
Fill a builder with attribute values from the provided
StateID instance. |
<D> TransitionWalker.ReachedState<D> |
TransitionWalker.initState(StateID<D> destination,
Collection<Listener> listener) |
<D> TransitionWalker.ReachedState<D> |
TransitionWalker.initState(StateID<D> destination,
Listener... listener) |
<T> TransitionWalker.ReachedState<T> |
TransitionWalker.ReachedState.initState(StateID<T> destination) |
<D> D |
StateLookup.of(StateID<D> type) |
static <T> ImmutableStateListener<T> |
ImmutableStateListener.of(StateID<T> type,
Consumer<T> listener)
Construct a new immutable
StateListener instance. |
static <T> Listener.StateListener<T> |
Listener.StateListener.of(StateID<T> type,
Consumer<T> listener) |
static <T> ImmutableStateMapping<T> |
ImmutableStateMapping.of(StateID<T> source,
StateID<T> destination)
Construct a new immutable
StateMapping instance. |
static <T> ImmutableStateMapping<T> |
ImmutableStateMapping.of(StateID<T> source,
StateID<T> destination)
Construct a new immutable
StateMapping instance. |
static <T> StateMapping<T> |
StateMapping.of(StateID<T> source,
StateID<T> destination) |
static <T> StateMapping<T> |
StateMapping.of(StateID<T> source,
StateID<T> destination) |
default <T> Listener.TypedListener.Builder |
Listener.TypedListener.Builder.onStateReached(StateID<T> type,
Consumer<T> listener) |
<T> void |
OnStateReached.onStateReached(StateID<T> stateID,
T value) |
<T> void |
Listener.Simple.onStateReached(StateID<T> state,
T value) |
<T> void |
Listener.TypedListener.onStateReached(StateID<T> state,
T value) |
default <T> Listener.TypedListener.Builder |
Listener.TypedListener.Builder.onStateTearDown(StateID<T> type,
Consumer<T> listener) |
<T> void |
OnStateTearDown.onStateTearDown(StateID<T> state,
T value) |
<T> void |
Listener.Simple.onStateTearDown(StateID<T> state,
T value) |
<T> void |
Listener.TypedListener.onStateTearDown(StateID<T> state,
T value) |
static Set<StateID<?>> |
StateID.setOf(StateID<?>... namedTypes) |
ImmutableStateMapping.Builder<T> |
ImmutableStateMapping.Builder.source(StateID<T> source)
Initializes the value for the
source attribute. |
protected <T> StateID<T> |
TransitionMapping.sourceOf(StateID<T> destination) |
ImmutableStateListener.Builder<T> |
ImmutableStateListener.Builder.type(StateID<T> type)
Initializes the value for the
type attribute. |
ImmutableStateMapping<T> |
ImmutableStateMapping.withDestination(StateID<T> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableStateMapping<T> |
ImmutableStateMapping.withSource(StateID<T> value)
Copy the current immutable object by setting a value for the
source attribute. |
ImmutableStateListener<T> |
ImmutableStateListener.withType(StateID<T> value)
Copy the current immutable object by setting a value for the
type attribute. |
| Modifier and Type | Method and Description |
|---|---|
default StateLookup |
StateLookup.limitedTo(Set<StateID<?>> allowedStates) |
static StateLookup |
StateLookup.limitedTo(Set<StateID<?>> allowedStates,
StateLookup delegate) |
static Listener |
Listener.of(BiConsumer<StateID<?>,Object> onStateReached,
BiConsumer<StateID<?>,Object> onTearDown) |
static Listener |
Listener.of(BiConsumer<StateID<?>,Object> onStateReached,
BiConsumer<StateID<?>,Object> onTearDown) |
ImmutableSimple.Builder |
ImmutableSimple.Builder.onStateReached(BiConsumer<StateID<?>,Object> onStateReached)
Initializes the optional value
onStateReached to onStateReached. |
ImmutableSimple.Builder |
ImmutableSimple.Builder.onStateReached(Optional<? extends BiConsumer<StateID<?>,Object>> onStateReached)
Initializes the optional value
onStateReached to onStateReached. |
ImmutableSimple.Builder |
ImmutableSimple.Builder.onTearDown(BiConsumer<StateID<?>,Object> onTearDown)
Initializes the optional value
onTearDown to onTearDown. |
ImmutableSimple.Builder |
ImmutableSimple.Builder.onTearDown(Optional<? extends BiConsumer<StateID<?>,Object>> onTearDown)
Initializes the optional value
onTearDown to onTearDown. |
ImmutableSimple |
ImmutableSimple.withOnStateReached(BiConsumer<StateID<?>,Object> value)
Copy the current immutable object by setting a present value for the optional
onStateReached attribute. |
ImmutableSimple |
ImmutableSimple.withOnStateReached(Optional<? extends BiConsumer<StateID<?>,Object>> optional)
Copy the current immutable object by setting an optional value for the
onStateReached attribute. |
ImmutableSimple |
ImmutableSimple.withOnTearDown(BiConsumer<StateID<?>,Object> value)
Copy the current immutable object by setting a present value for the optional
onTearDown attribute. |
ImmutableSimple |
ImmutableSimple.withOnTearDown(Optional<? extends BiConsumer<StateID<?>,Object>> optional)
Copy the current immutable object by setting an optional value for the
onTearDown attribute. |
| Modifier and Type | Method and Description |
|---|---|
StateID<?> |
ImmutableStateVertex.stateId() |
abstract StateID<?> |
StateVertex.stateId() |
| Modifier and Type | Method and Description |
|---|---|
static String |
TransitionGraph.asMessage(StateID<?> type) |
static ImmutableStateVertex |
ImmutableStateVertex.of(StateID<?> stateId)
Construct a new immutable
StateVertex instance. |
static StateVertex |
StateVertex.of(StateID<?> stateId) |
ImmutableStateVertex.Builder |
ImmutableStateVertex.Builder.stateId(StateID<?> stateId)
Initializes the value for the
stateId attribute. |
ImmutableStateVertex |
ImmutableStateVertex.withStateId(StateID<?> value)
Copy the current immutable object by setting a value for the
stateId attribute. |
| Modifier and Type | Method and Description |
|---|---|
static String |
TransitionGraph.asMessage(Collection<StateID<?>> types) |
static String |
TransitionGraph.edgeGraphAsDot(String label,
org.jgrapht.graph.DefaultDirectedGraph<Vertex,org.jgrapht.graph.DefaultEdge> graph,
Function<Transition<?>,String> transitionAsLabel,
Function<StateID<?>,String> stateIdAsLabel) |
| Modifier and Type | Method and Description |
|---|---|
StateID<D> |
ImmutableStart.destination() |
StateID<D> |
ImmutableJoin.destination() |
StateID<D> |
ImmutableDerive.destination() |
abstract StateID<D> |
Derive.destination() |
abstract StateID<D> |
Join.destination() |
abstract StateID<D> |
Start.destination() |
StateID<L> |
ImmutableJoin.left() |
abstract StateID<L> |
Join.left() |
StateID<R> |
ImmutableJoin.right() |
abstract StateID<R> |
Join.right() |
StateID<S> |
ImmutableDerive.source() |
abstract StateID<S> |
Derive.source() |
| Modifier and Type | Method and Description |
|---|---|
Set<StateID<?>> |
ImmutableStart.sources()
Returns a lazily initialized value of the
sources attribute. |
Set<StateID<?>> |
ImmutableJoin.sources()
Returns a lazily initialized value of the
sources attribute. |
Set<StateID<?>> |
ImmutableDerive.sources()
Returns a lazily initialized value of the
sources attribute. |
Set<StateID<?>> |
Derive.sources() |
Set<StateID<?>> |
Join.sources() |
Set<StateID<?>> |
Start.sources() |
| Modifier and Type | Method and Description |
|---|---|
<R> Join.WithSources<L,R> |
Join.WithLeft.and(StateID<R> right) |
ImmutableStart.Builder<D> |
ImmutableStart.Builder.destination(StateID<D> destination)
Initializes the value for the
destination attribute. |
ImmutableJoin.Builder<L,R,D> |
ImmutableJoin.Builder.destination(StateID<D> destination)
Initializes the value for the
destination attribute. |
ImmutableDerive.Builder<S,D> |
ImmutableDerive.Builder.destination(StateID<D> destination)
Initializes the value for the
destination attribute. |
static <D> Derive.WithSource<D> |
Derive.given(StateID<D> source) |
static <L> Join.WithLeft<L> |
Join.given(StateID<L> left) |
ImmutableJoin.Builder<L,R,D> |
ImmutableJoin.Builder.left(StateID<L> left)
Initializes the value for the
left attribute. |
static <D> ImmutableStart<D> |
Start.of(StateID<D> dest,
Supplier<State<D>> action) |
static <L,R,D> ImmutableJoin<L,R,D> |
Join.of(StateID<L> left,
StateID<R> right,
StateID<D> dest,
BiFunction<L,R,State<D>> action) |
static <L,R,D> ImmutableJoin<L,R,D> |
Join.of(StateID<L> left,
StateID<R> right,
StateID<D> dest,
BiFunction<L,R,State<D>> action) |
static <L,R,D> ImmutableJoin<L,R,D> |
Join.of(StateID<L> left,
StateID<R> right,
StateID<D> dest,
BiFunction<L,R,State<D>> action) |
static <S,D> ImmutableDerive<S,D> |
Derive.of(StateID<S> source,
StateID<D> dest,
Function<S,State<D>> action) |
static <S,D> ImmutableDerive<S,D> |
Derive.of(StateID<S> source,
StateID<D> dest,
Function<S,State<D>> action) |
ImmutableJoin.Builder<L,R,D> |
ImmutableJoin.Builder.right(StateID<R> right)
Initializes the value for the
right attribute. |
ImmutableDerive.Builder<S,D> |
ImmutableDerive.Builder.source(StateID<S> source)
Initializes the value for the
source attribute. |
<D> Derive.WithSourceAndDestination<S,D> |
Derive.WithSource.state(StateID<D> destination) |
<D> Join.WithDestination<L,R,D> |
Join.WithSources.state(StateID<D> destination) |
static <D> Start.WithDestination<D> |
Start.to(StateID<D> dest) |
ImmutableStart<D> |
ImmutableStart.withDestination(StateID<D> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableJoin<L,R,D> |
ImmutableJoin.withDestination(StateID<D> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableDerive<S,D> |
ImmutableDerive.withDestination(StateID<D> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableJoin<L,R,D> |
ImmutableJoin.withLeft(StateID<L> value)
Copy the current immutable object by setting a value for the
left attribute. |
ImmutableJoin<L,R,D> |
ImmutableJoin.withRight(StateID<R> value)
Copy the current immutable object by setting a value for the
right attribute. |
ImmutableDerive<S,D> |
ImmutableDerive.withSource(StateID<S> value)
Copy the current immutable object by setting a value for the
source attribute. |
| Constructor and Description |
|---|
WithDestination(StateID<L> left,
StateID<R> right,
StateID<D> destination) |
WithDestination(StateID<L> left,
StateID<R> right,
StateID<D> destination) |
WithDestination(StateID<L> left,
StateID<R> right,
StateID<D> destination) |
WithSourceAndDestination(StateID<S> source,
StateID<D> destination) |
WithSourceAndDestination(StateID<S> source,
StateID<D> destination) |
WithSources(StateID<L> left,
StateID<R> right) |
WithSources(StateID<L> left,
StateID<R> right) |
Copyright © 2025. All rights reserved.