T
- is the source stateR
- is the target statepublic class StateTransition<T extends State,R extends State,A> extends Object implements Transition
StateTransition
is a resource specification that defines an input state and output state, while providing
a validation error if an input state cannot progress to an output state.Constructor and Description |
---|
StateTransition(T from,
R to) |
Modifier and Type | Method and Description |
---|---|
A |
apply(A aggregate) |
T |
getFrom() |
String |
getSourceName() |
String |
getTargetName() |
R |
getTo() |
void |
setActionHandler(BiConsumer<T,R> action) |
void |
setAggregateConsumer(Function<A,A> consumer) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
logResult
public void setActionHandler(BiConsumer<T,R> action)
public T getFrom()
public R getTo()
public String getSourceName()
getSourceName
in interface Transition
public String getTargetName()
getTargetName
in interface Transition
Copyright © 2022. All rights reserved.