| Modifier and Type | Field and Description |
|---|---|
protected Consumer<StateTransitionContext<S,E,T>> |
StateTransitionDecl.action
具体执行的内容
|
protected Predicate<StateTransitionContext<S,E,T>> |
StateTransitionDecl.condition
额外条件,触发后的进一步条件需求
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
StateTransition.execute(StateTransitionContext<S,E,T> context)
执行
|
| Modifier and Type | Method and Description |
|---|---|
StateTransitionDecl<S,E,T> |
StateTransitionDecl.then(Consumer<StateTransitionContext<S,E,T>> action)
然后执行动作
|
StateTransitionDecl<S,E,T> |
StateTransitionDecl.when(Predicate<StateTransitionContext<S,E,T>> condition)
额外条件
|
Copyright © 2025. All rights reserved.