Advertisement
Guest User

Untitled

a guest
Dec 1st, 2015
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. /**
  2. * Abstract presenter that provides the view to the specific presenters.
  3. */
  4. public class BasePresenter<T> {
  5.  
  6. private T mViewInstance;
  7.  
  8. public BasePresenter(T viewInstance) {
  9. this.mViewInstance = viewInstance;
  10. }
  11.  
  12. protected T getView() {
  13. return mViewInstance;
  14. }
  15.  
  16. public void detachView() {
  17. mViewInstance = null;
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement