Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Abstract presenter that provides the view to the specific presenters.
- */
- public class BasePresenter<T> {
- private T mViewInstance;
- public BasePresenter(T viewInstance) {
- this.mViewInstance = viewInstance;
- }
- protected T getView() {
- return mViewInstance;
- }
- public void detachView() {
- mViewInstance = null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement