public class OneExecutionStateStrategy extends java.lang.Object implements StateStrategy
| Constructor and Description |
|---|
OneExecutionStateStrategy() |
| Modifier and Type | Method and Description |
|---|---|
<View extends MvpView> |
afterApply(java.util.List<ViewCommand<View>> currentState,
ViewCommand<View> incomingCommand)
Called immediately after a command was applied to an
MvpView. |
<View extends MvpView> |
beforeApply(java.util.List<ViewCommand<View>> currentState,
ViewCommand<View> incomingCommand)
Called immediately after
MvpViewState receives some
command. |
public <View extends MvpView> void beforeApply(java.util.List<ViewCommand<View>> currentState, ViewCommand<View> incomingCommand)
StateStrategyMvpViewState receives some
command. Will not be called before re-apply to some other
MvpViewbeforeApply in interface StateStrategyView - type of the given viewcurrentState - current state of MvpViewState. Each ViewCommand contains its own parameters.incomingCommand - command for applying to a MvpView This ViewCommand contains params
of this command.public <View extends MvpView> void afterApply(java.util.List<ViewCommand<View>> currentState, ViewCommand<View> incomingCommand)
StateStrategyMvpView. Also called
after re-apply to other views.afterApply in interface StateStrategyView - type of the given viewcurrentState - current state of MvpViewState. Each ViewCommand contains its own parameters.incomingCommand - applied command to MvpView This ViewCommand contains params of this
command.