![JAR search and dependency download from the Maven repository](/logo.png)
com.arellomobile.mvp.viewstate.strategy.AddToEndStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moxy Show documentation
Show all versions of moxy Show documentation
Arello-Mobile MVP library for Android
package com.arellomobile.mvp.viewstate.strategy;
import java.util.List;
import com.arellomobile.mvp.MvpView;
import com.arellomobile.mvp.viewstate.ViewCommand;
/**
* Command will be added to end of commands queue.
*
* This strategy used by default.
*
* Date: 17.12.2015
* Time: 11:29
*
* @author Yuri Shmakov
*/
public class AddToEndStrategy implements StateStrategy {
@Override
public void beforeApply(List> currentState, ViewCommand incomingCommand) {
currentState.add(incomingCommand);
}
@Override
public void afterApply(List> currentState, ViewCommand incomingCommand) {
// pass
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy