All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arellomobile.mvp.viewstate.ViewCommand Maven / Gradle / Ivy

package com.arellomobile.mvp.viewstate;

import com.arellomobile.mvp.MvpView;
import com.arellomobile.mvp.viewstate.strategy.StateStrategy;

/**
 * Date: 16-Dec-15
 * Time: 16:59
 *
 * @author Alexander Blinov
 */
public abstract class ViewCommand {
	private final String mTag;
	private final Class mStateStrategyType;

	protected ViewCommand(String tag, Class stateStrategyType) {
		mTag = tag;
		mStateStrategyType = stateStrategyType;
	}

	public abstract void apply(View view);

	public String getTag() {
		return mTag;
	}

	public Class getStrategyType() {
		return mStateStrategyType;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy