Class AddToEndSingleTagStrategy

  • All Implemented Interfaces:
    StateStrategy

    public class AddToEndSingleTagStrategy
    extends java.lang.Object
    implements StateStrategy
    Command will be added to the end of the commands queue. If the commands queue contains the same tag, then an existing command will be removed.
    • Constructor Detail

      • AddToEndSingleTagStrategy

        public AddToEndSingleTagStrategy()
    • Method Detail

      • afterApply

        public <View extends MvpView> void afterApply​(java.util.List<ViewCommand<View>> currentState,
                                                      ViewCommand<View> incomingCommand)
        Description copied from interface: StateStrategy
        Called immediately after a command was applied to an MvpView. Also called after re-apply to other views.
        Specified by:
        afterApply in interface StateStrategy
        Type Parameters:
        View - type of the given view
        Parameters:
        currentState - current state of MvpViewState. Each ViewCommand contains its own parameters.
        incomingCommand - applied command to MvpView This ViewCommand contains params of this command.