test_class.declarator: VIEW_ID = 1
test_class.modifier: private static final
test_class.original_string: private static final int VIEW_ID = 1;
test_class.type: int
test_class.var_name: VIEW_ID
test_class.declarator: VIEW_ID_TWO = 2
test_class.modifier: private static final
test_class.original_string: private static final int VIEW_ID_TWO = 2;
test_class.type: int
test_class.var_name: VIEW_ID_TWO
test_class.declarator: presenter
test_class.modifier: private
test_class.original_string: private TestPresenter presenter;
test_class.type: TestPresenter
test_class.var_name: presenter
test_class.declarator: viewTwo
test_class.modifier: private
test_class.original_string: private TestViewTwo viewTwo;
test_class.type: TestViewTwo
test_class.var_name: viewTwo
test_class.file: library/src/test/java/io/reist/visum/presenter/VisumPresenterTest.java
test_class.identifier: VisumPresenterTest
test_class.superclass: extends VisumTest<BaseTestView>
test_case.body: @Test
      public void testSetView() {
  
          BaseTestView view = getClient();
  
          view.attachPresenter();
          assertPresenterAttached(presenter, VIEW_ID, view);
  
          view.detachPresenter();
          assertPresenterDetached(presenter, VIEW_ID, view);
  
      }
test_case.class_method_signature: VisumPresenterTest.testSetView()
test_case.full_signature: @Test public void testSetView()
test_case.identifier: testSetView
test_case.invocations: getClient attachPresenter assertPresenterAttached detachPresenter assertPresenterDetached
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSetView()
focal_class.declarator: viewHolders = new ArrayList<>()
focal_class.modifier: private final
focal_class.original_string: private final List<ViewHolder<V>> viewHolders = new ArrayList<>();
focal_class.type: List<ViewHolder<V>>
focal_class.var_name: viewHolders
focal_class.declarator: subscriptions
focal_class.modifier: private
focal_class.original_string: private CompositeSubscription subscriptions;
focal_class.type: CompositeSubscription
focal_class.var_name: subscriptions
focal_class.file: library/src/main/java/io/reist/visum/presenter/VisumPresenter.java
focal_class.identifier: VisumPresenter
focal_class.class_method_signature: VisumPresenter.findViewHolderByViewId(int id)
focal_class.full_signature: private ViewHolder<V> findViewHolderByViewId(int id)
focal_class.identifier: findViewHolderByViewId
focal_class.modifiers: private
focal_class.parameters: (int id)
focal_class.return: ViewHolder<V>
focal_class.signature: ViewHolder<V> findViewHolderByViewId(int id)
focal_class.class_method_signature: VisumPresenter.findViewHolderByViewIdOrThrow(int id)
focal_class.full_signature: @NonNull private ViewHolder<V> findViewHolderByViewIdOrThrow(int id)
focal_class.identifier: findViewHolderByViewIdOrThrow
focal_class.modifiers: @NonNull private
focal_class.parameters: (int id)
focal_class.return: ViewHolder<V>
focal_class.signature: ViewHolder<V> findViewHolderByViewIdOrThrow(int id)
focal_class.class_method_signature: VisumPresenter.setView(int id, @Nullable V view)
focal_class.full_signature: public final void setView(int id, @Nullable V view)
focal_class.identifier: setView
focal_class.modifiers: public final
focal_class.parameters: (int id, @Nullable V view)
focal_class.return: void
focal_class.signature: void setView(int id, @Nullable V view)
focal_class.class_method_signature: VisumPresenter.removeView(int id)
focal_class.full_signature: private V removeView(int id)
focal_class.identifier: removeView
focal_class.modifiers: private
focal_class.parameters: (int id)
focal_class.return: V
focal_class.signature: V removeView(int id)
focal_class.class_method_signature: VisumPresenter.addView(int id, @NonNull V view)
focal_class.full_signature: private void addView(int id, @NonNull V view)
focal_class.identifier: addView
focal_class.modifiers: private
focal_class.parameters: (int id, @NonNull V view)
focal_class.return: void
focal_class.signature: void addView(int id, @NonNull V view)
focal_class.class_method_signature: VisumPresenter.onStop()
focal_class.full_signature: public void onStop()
focal_class.identifier: onStop
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onStop()
focal_class.class_method_signature: VisumPresenter.onStart()
focal_class.full_signature: public void onStart()
focal_class.identifier: onStart
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onStart()
focal_class.class_method_signature: VisumPresenter.subscribe(int viewId, Observable<T> observable, Observer<? super T> observer)
focal_class.full_signature: public final Subscription subscribe(int viewId, Observable<T> observable, Observer<? super T> observer)
focal_class.identifier: subscribe
focal_class.modifiers: public final
focal_class.parameters: (int viewId, Observable<T> observable, Observer<? super T> observer)
focal_class.return: Subscription
focal_class.signature: Subscription subscribe(int viewId, Observable<T> observable, Observer<? super T> observer)
focal_class.class_method_signature: VisumPresenter.subscribe(int viewId, Observable<T> observable, Action1<T> action, Action1<Throwable> error)
focal_class.full_signature: public final Subscription subscribe(int viewId, Observable<T> observable, Action1<T> action, Action1<Throwable> error)
focal_class.identifier: subscribe
focal_class.modifiers: public final
focal_class.parameters: (int viewId, Observable<T> observable, Action1<T> action, Action1<Throwable> error)
focal_class.return: Subscription
focal_class.signature: Subscription subscribe(int viewId, Observable<T> observable, Action1<T> action, Action1<Throwable> error)
focal_class.class_method_signature: VisumPresenter.subscribe(Observable<T> observable, @NonNull final ViewNotifier<V, T> viewNotifier)
focal_class.full_signature: public final Subscription subscribe(Observable<T> observable, @NonNull final ViewNotifier<V, T> viewNotifier)
focal_class.identifier: subscribe
focal_class.modifiers: public final
focal_class.parameters: (Observable<T> observable, @NonNull final ViewNotifier<V, T> viewNotifier)
focal_class.return: Subscription
focal_class.signature: Subscription subscribe(Observable<T> observable, @NonNull final ViewNotifier<V, T> viewNotifier)
focal_class.class_method_signature: VisumPresenter.subscribe(int viewId, Single<T> single, SingleSubscriber<T> subscriber)
focal_class.full_signature: public final Subscription subscribe(int viewId, Single<T> single, SingleSubscriber<T> subscriber)
focal_class.identifier: subscribe
focal_class.modifiers: public final
focal_class.parameters: (int viewId, Single<T> single, SingleSubscriber<T> subscriber)
focal_class.return: Subscription
focal_class.signature: Subscription subscribe(int viewId, Single<T> single, SingleSubscriber<T> subscriber)
focal_class.class_method_signature: VisumPresenter.subscribe(int viewId, Single<T> single, Action1<T> action, Action1<Throwable> error)
focal_class.full_signature: public final Subscription subscribe(int viewId, Single<T> single, Action1<T> action, Action1<Throwable> error)
focal_class.identifier: subscribe
focal_class.modifiers: public final
focal_class.parameters: (int viewId, Single<T> single, Action1<T> action, Action1<Throwable> error)
focal_class.return: Subscription
focal_class.signature: Subscription subscribe(int viewId, Single<T> single, Action1<T> action, Action1<Throwable> error)
focal_class.class_method_signature: VisumPresenter.subscribe(Single<T> single, @NonNull final ViewNotifier<V, T> viewNotifier)
focal_class.full_signature: @SuppressWarnings("unused") public final Subscription subscribe(Single<T> single, @NonNull final ViewNotifier<V, T> viewNotifier)
focal_class.identifier: subscribe
focal_class.modifiers: @SuppressWarnings("unused") public final
focal_class.parameters: (Single<T> single, @NonNull final ViewNotifier<V, T> viewNotifier)
focal_class.return: Subscription
focal_class.signature: Subscription subscribe(Single<T> single, @NonNull final ViewNotifier<V, T> viewNotifier)
focal_class.class_method_signature: VisumPresenter.subscribe(int viewId, Completable completable, Action0 onComplete, Action1<? super Throwable> onError)
focal_class.full_signature: public final Subscription subscribe(int viewId, Completable completable, Action0 onComplete, Action1<? super Throwable> onError)
focal_class.identifier: subscribe
focal_class.modifiers: public final
focal_class.parameters: (int viewId, Completable completable, Action0 onComplete, Action1<? super Throwable> onError)
focal_class.return: Subscription
focal_class.signature: Subscription subscribe(int viewId, Completable completable, Action0 onComplete, Action1<? super Throwable> onError)
focal_class.class_method_signature: VisumPresenter.startSubscription(Observable<T> observable, Observer<? super T> observer)
focal_class.full_signature: private Subscription startSubscription(Observable<T> observable, Observer<? super T> observer)
focal_class.identifier: startSubscription
focal_class.modifiers: private
focal_class.parameters: (Observable<T> observable, Observer<? super T> observer)
focal_class.return: Subscription
focal_class.signature: Subscription startSubscription(Observable<T> observable, Observer<? super T> observer)
focal_class.class_method_signature: VisumPresenter.startSubscription(Observable<T> observable, Action1<T> onSuccess, Action1<Throwable> onError)
focal_class.full_signature: private Subscription startSubscription(Observable<T> observable, Action1<T> onSuccess, Action1<Throwable> onError)
focal_class.identifier: startSubscription
focal_class.modifiers: private
focal_class.parameters: (Observable<T> observable, Action1<T> onSuccess, Action1<Throwable> onError)
focal_class.return: Subscription
focal_class.signature: Subscription startSubscription(Observable<T> observable, Action1<T> onSuccess, Action1<Throwable> onError)
focal_class.class_method_signature: VisumPresenter.startSubscription(Single<T> single, SingleSubscriber<T> subscriber)
focal_class.full_signature: private Subscription startSubscription(Single<T> single, SingleSubscriber<T> subscriber)
focal_class.identifier: startSubscription
focal_class.modifiers: private
focal_class.parameters: (Single<T> single, SingleSubscriber<T> subscriber)
focal_class.return: Subscription
focal_class.signature: Subscription startSubscription(Single<T> single, SingleSubscriber<T> subscriber)
focal_class.class_method_signature: VisumPresenter.startSubscription(Single<T> single, Action1<T> onSuccess, Action1<Throwable> onError)
focal_class.full_signature: private Subscription startSubscription(Single<T> single, Action1<T> onSuccess, Action1<Throwable> onError)
focal_class.identifier: startSubscription
focal_class.modifiers: private
focal_class.parameters: (Single<T> single, Action1<T> onSuccess, Action1<Throwable> onError)
focal_class.return: Subscription
focal_class.signature: Subscription startSubscription(Single<T> single, Action1<T> onSuccess, Action1<Throwable> onError)
focal_class.class_method_signature: VisumPresenter.startSubscription(Completable completable, Action0 onComplete, Action1<? super Throwable> onError)
focal_class.full_signature: private Subscription startSubscription(Completable completable, Action0 onComplete, Action1<? super Throwable> onError)
focal_class.identifier: startSubscription
focal_class.modifiers: private
focal_class.parameters: (Completable completable, Action0 onComplete, Action1<? super Throwable> onError)
focal_class.return: Subscription
focal_class.signature: Subscription startSubscription(Completable completable, Action0 onComplete, Action1<? super Throwable> onError)
focal_class.class_method_signature: VisumPresenter.unsubscribe(Subscription... subscriptions)
focal_class.full_signature: public void unsubscribe(Subscription... subscriptions)
focal_class.identifier: unsubscribe
focal_class.modifiers: public
focal_class.parameters: (Subscription... subscriptions)
focal_class.return: void
focal_class.signature: void unsubscribe(Subscription... subscriptions)
focal_class.class_method_signature: VisumPresenter.onViewAttached(int id, @NonNull V view)
focal_class.full_signature: protected void onViewAttached(int id, @NonNull V view)
focal_class.identifier: onViewAttached
focal_class.modifiers: protected
focal_class.parameters: (int id, @NonNull V view)
focal_class.return: void
focal_class.signature: void onViewAttached(int id, @NonNull V view)
focal_class.class_method_signature: VisumPresenter.onViewDetached(int id, @NonNull V view)
focal_class.full_signature: protected void onViewDetached(int id, @NonNull V view)
focal_class.identifier: onViewDetached
focal_class.modifiers: protected
focal_class.parameters: (int id, @NonNull V view)
focal_class.return: void
focal_class.signature: void onViewDetached(int id, @NonNull V view)
focal_class.class_method_signature: VisumPresenter.view(int id)
focal_class.full_signature: @NonNull public final V view(int id)
focal_class.identifier: view
focal_class.modifiers: @NonNull public final
focal_class.parameters: (int id)
focal_class.return: V
focal_class.signature: V view(int id)
focal_class.class_method_signature: VisumPresenter.forEachView(@NonNull Action1<V> action1)
focal_class.full_signature: @SuppressWarnings({"unused"}) public final void forEachView(@NonNull Action1<V> action1)
focal_class.identifier: forEachView
focal_class.modifiers: @SuppressWarnings({"unused"}) public final
focal_class.parameters: (@NonNull Action1<V> action1)
focal_class.return: void
focal_class.signature: void forEachView(@NonNull Action1<V> action1)
focal_class.class_method_signature: VisumPresenter.notifyCompleted(@NonNull ViewNotifier<V, T> viewNotifier)
focal_class.full_signature: private void notifyCompleted(@NonNull ViewNotifier<V, T> viewNotifier)
focal_class.identifier: notifyCompleted
focal_class.modifiers: private
focal_class.parameters: (@NonNull ViewNotifier<V, T> viewNotifier)
focal_class.return: void
focal_class.signature: void notifyCompleted(@NonNull ViewNotifier<V, T> viewNotifier)
focal_class.class_method_signature: VisumPresenter.notifyResult(@NonNull ViewNotifier<V, T> viewNotifier, T t)
focal_class.full_signature: private void notifyResult(@NonNull ViewNotifier<V, T> viewNotifier, T t)
focal_class.identifier: notifyResult
focal_class.modifiers: private
focal_class.parameters: (@NonNull ViewNotifier<V, T> viewNotifier, T t)
focal_class.return: void
focal_class.signature: void notifyResult(@NonNull ViewNotifier<V, T> viewNotifier, T t)
focal_class.class_method_signature: VisumPresenter.notifyError(@NonNull ViewNotifier<V, T> viewNotifier, Throwable e)
focal_class.full_signature: private void notifyError(@NonNull ViewNotifier<V, T> viewNotifier, Throwable e)
focal_class.identifier: notifyError
focal_class.modifiers: private
focal_class.parameters: (@NonNull ViewNotifier<V, T> viewNotifier, Throwable e)
focal_class.return: void
focal_class.signature: void notifyError(@NonNull ViewNotifier<V, T> viewNotifier, Throwable e)
focal_class.class_method_signature: VisumPresenter.getViewCount()
focal_class.full_signature: public final int getViewCount()
focal_class.identifier: getViewCount
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getViewCount()
focal_class.class_method_signature: VisumPresenter.hasViews()
focal_class.full_signature: public final boolean hasViews()
focal_class.identifier: hasViews
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean hasViews()
focal_class.class_method_signature: VisumPresenter.hasSubscriptions()
focal_class.full_signature: public final boolean hasSubscriptions()
focal_class.identifier: hasSubscriptions
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean hasSubscriptions()
focal_class.class_method_signature: VisumPresenter.hasSubscriptions(int viewId)
focal_class.full_signature: public final boolean hasSubscriptions(int viewId)
focal_class.identifier: hasSubscriptions
focal_class.modifiers: public final
focal_class.parameters: (int viewId)
focal_class.return: boolean
focal_class.signature: boolean hasSubscriptions(int viewId)
focal_class.class_method_signature: VisumPresenter.clearSubscriptions()
focal_class.full_signature: private void clearSubscriptions()
focal_class.identifier: clearSubscriptions
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clearSubscriptions()
focal_method.body: public final void setView(int id, @Nullable V view) {
          V removedView = removeView(id);
          if (removedView != null) {
              onViewDetached(id, removedView);
              if (!hasViews()) {
                  clearSubscriptions();
                  onStop();
              }
          }
  
          if (view != null) {
              addView(id, view);
              onViewAttached(id, view);
          }
      }
focal_method.class_method_signature: VisumPresenter.setView(int id, @Nullable V view)
focal_method.full_signature: public final void setView(int id, @Nullable V view)
focal_method.identifier: setView
focal_method.invocations: removeView onViewDetached hasViews clearSubscriptions onStop addView onViewAttached
focal_method.modifiers: public final
focal_method.parameters: (int id, @Nullable V view)
focal_method.return: void
focal_method.signature: void setView(int id, @Nullable V view)