Skip to content

Instantly share code, notes, and snippets.

@senneco
Created February 10, 2017 08:37
Show Gist options
  • Save senneco/0d19364d2f64a0d5e989d7e4f8edf46e to your computer and use it in GitHub Desktop.
Save senneco/0d19364d2f64a0d5e989d7e4f8edf46e to your computer and use it in GitHub Desktop.
public class DefaultStateStrategy implements StateStrategy {
@Override
public <View extends MvpView> void beforeApply(List<ViewCommand<View>> currentState, ViewCommand<View> incomingCommand) {
MvpFacade.getDefaultStrategy().beforeApply(currentState, incomingCommand);
}
@Override
public <View extends MvpView> void afterApply(List<ViewCommand<View>> currentState, ViewCommand<View> incomingCommand) {
MvpFacade.getDefaultStrategy().afterApply(currentState, incomingCommand);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment