test_class.declarator: dummyInitialItems
test_class.original_string: List<MockIntegerParcelable> dummyInitialItems;
test_class.type: List<MockIntegerParcelable>
test_class.var_name: dummyInitialItems
test_class.declarator: mockProvider
test_class.original_string: MockIntegerParcelablePaginationProvider mockProvider;
test_class.type: MockIntegerParcelablePaginationProvider
test_class.var_name: mockProvider
test_class.declarator: mockAdapter
test_class.original_string: MockIntegerParcelablePaginationAdapter mockAdapter;
test_class.type: MockIntegerParcelablePaginationAdapter
test_class.var_name: mockAdapter
test_class.declarator: refreshLayout
test_class.original_string: SwipeRefreshLayout refreshLayout;
test_class.type: SwipeRefreshLayout
test_class.var_name: refreshLayout
test_class.declarator: recyclerView
test_class.original_string: RecyclerView recyclerView;
test_class.type: RecyclerView
test_class.var_name: recyclerView
test_class.declarator: context
test_class.original_string: Context context;
test_class.type: Context
test_class.var_name: context
test_class.declarator: presenter
test_class.original_string: PaginatedListPresenter<MockIntegerParcelable> presenter;
test_class.type: PaginatedListPresenter<MockIntegerParcelable>
test_class.var_name: presenter
test_class.file: app/src/test/java/derpibooru/derpy/ui/presenters/PaginatedListPresenterTest.java
test_class.identifier: PaginatedListPresenterTest
test_case.body: @Test
      public void testStateRecovery() {
          saveAndRestorePresenterState();
          assertAdapterItemsAreEqualTo(dummyInitialItems);
          assertThat(presenter.getListProvider().getCurrentPage(), is(1));
          /* navigate to third page to test current page recovery */
          List<MockIntegerParcelable> expectedItems = generatePagesTo(3);
          saveAndRestorePresenterState();
          assertAdapterItemsAreEqualTo(expectedItems);
          assertThat(presenter.getListProvider().getCurrentPage(), is(3));
      }
test_case.class_method_signature: PaginatedListPresenterTest.testStateRecovery()
test_case.full_signature: @Test public void testStateRecovery()
test_case.identifier: testStateRecovery
test_case.invocations: saveAndRestorePresenterState assertAdapterItemsAreEqualTo assertThat getCurrentPage getListProvider is generatePagesTo saveAndRestorePresenterState assertAdapterItemsAreEqualTo assertThat getCurrentPage getListProvider is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testStateRecovery()
focal_class.declarator: EXTRAS_RECYCLER_VIEW_POSITION = "derpibooru.derpy.PaginatedRecyclerViewPosition"
focal_class.modifier: private static final
focal_class.original_string: private static final String EXTRAS_RECYCLER_VIEW_POSITION = "derpibooru.derpy.PaginatedRecyclerViewPosition";
focal_class.type: String
focal_class.var_name: EXTRAS_RECYCLER_VIEW_POSITION
focal_class.declarator: EXTRAS_PROVIDER_PAGE = "derpibooru.derpy.PaginatedListProviderPage"
focal_class.modifier: private static final
focal_class.original_string: private static final String EXTRAS_PROVIDER_PAGE = "derpibooru.derpy.PaginatedListProviderPage";
focal_class.type: String
focal_class.var_name: EXTRAS_PROVIDER_PAGE
focal_class.declarator: EXTRAS_PAGINATED_LIST = "derpibooru.derpy.PaginatedListItems"
focal_class.modifier: private static final
focal_class.original_string: private static final String EXTRAS_PAGINATED_LIST = "derpibooru.derpy.PaginatedListItems";
focal_class.type: String
focal_class.var_name: EXTRAS_PAGINATED_LIST
focal_class.declarator: mProvider
focal_class.modifier: private
focal_class.original_string: private PaginatedListProvider<TItem> mProvider;
focal_class.type: PaginatedListProvider<TItem>
focal_class.var_name: mProvider
focal_class.declarator: mAdapter
focal_class.modifier: private
focal_class.original_string: private RecyclerViewPaginationAdapter<TItem, ?> mAdapter;
focal_class.type: RecyclerViewPaginationAdapter<TItem, ?>
focal_class.var_name: mAdapter
focal_class.declarator: mRefreshLayout
focal_class.modifier: private
focal_class.original_string: private SwipeRefreshLayout mRefreshLayout;
focal_class.type: SwipeRefreshLayout
focal_class.var_name: mRefreshLayout
focal_class.declarator: mListView
focal_class.modifier: private
focal_class.original_string: private RecyclerView mListView;
focal_class.type: RecyclerView
focal_class.var_name: mListView
focal_class.file: app/src/main/java/derpibooru/derpy/ui/presenters/PaginatedListPresenter.java
focal_class.identifier: PaginatedListPresenter
focal_class.class_method_signature: PaginatedListPresenter.PaginatedListPresenter(@NonNull SwipeRefreshLayout refreshLayout,
                                    @NonNull RecyclerView listView)
focal_class.full_signature: public  PaginatedListPresenter(@NonNull SwipeRefreshLayout refreshLayout,
                                    @NonNull RecyclerView listView)
focal_class.identifier: PaginatedListPresenter
focal_class.modifiers: public
focal_class.parameters: (@NonNull SwipeRefreshLayout refreshLayout,
                                    @NonNull RecyclerView listView)
focal_class.signature:  PaginatedListPresenter(@NonNull SwipeRefreshLayout refreshLayout,
                                    @NonNull RecyclerView listView)
focal_class.class_method_signature: PaginatedListPresenter.initializeWithProvider(PaginatedListProvider<TItem> provider)
focal_class.full_signature: public void initializeWithProvider(PaginatedListProvider<TItem> provider)
focal_class.identifier: initializeWithProvider
focal_class.modifiers: public
focal_class.parameters: (PaginatedListProvider<TItem> provider)
focal_class.return: void
focal_class.signature: void initializeWithProvider(PaginatedListProvider<TItem> provider)
focal_class.class_method_signature: PaginatedListPresenter.initializeWithProvider(PaginatedListProvider<TItem> provider, @NonNull Bundle savedInstanceState)
focal_class.full_signature: public void initializeWithProvider(PaginatedListProvider<TItem> provider, @NonNull Bundle savedInstanceState)
focal_class.identifier: initializeWithProvider
focal_class.modifiers: public
focal_class.parameters: (PaginatedListProvider<TItem> provider, @NonNull Bundle savedInstanceState)
focal_class.return: void
focal_class.signature: void initializeWithProvider(PaginatedListProvider<TItem> provider, @NonNull Bundle savedInstanceState)
focal_class.class_method_signature: PaginatedListPresenter.resetAdapterAndRefreshList()
focal_class.full_signature: public void resetAdapterAndRefreshList()
focal_class.identifier: resetAdapterAndRefreshList
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resetAdapterAndRefreshList()
focal_class.class_method_signature: PaginatedListPresenter.getNewInstanceOfListAdapter(List<TItem> initialItems)
focal_class.full_signature: public abstract RecyclerViewPaginationAdapter<TItem, ?> getNewInstanceOfListAdapter(List<TItem> initialItems)
focal_class.identifier: getNewInstanceOfListAdapter
focal_class.modifiers: public abstract
focal_class.parameters: (List<TItem> initialItems)
focal_class.return: RecyclerViewPaginationAdapter<TItem, ?>
focal_class.signature: RecyclerViewPaginationAdapter<TItem, ?> getNewInstanceOfListAdapter(List<TItem> initialItems)
focal_class.class_method_signature: PaginatedListPresenter.getAdapter()
focal_class.full_signature: @Nullable public RecyclerViewPaginationAdapter<TItem, ?> getAdapter()
focal_class.identifier: getAdapter
focal_class.modifiers: @Nullable public
focal_class.parameters: ()
focal_class.return: RecyclerViewPaginationAdapter<TItem, ?>
focal_class.signature: RecyclerViewPaginationAdapter<TItem, ?> getAdapter()
focal_class.class_method_signature: PaginatedListPresenter.refreshList()
focal_class.full_signature: public void refreshList()
focal_class.identifier: refreshList
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void refreshList()
focal_class.class_method_signature: PaginatedListPresenter.getListProvider()
focal_class.full_signature: public PaginatedListProvider<TItem> getListProvider()
focal_class.identifier: getListProvider
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: PaginatedListProvider<TItem>
focal_class.signature: PaginatedListProvider<TItem> getListProvider()
focal_class.class_method_signature: PaginatedListPresenter.onSaveInstanceState(Bundle outState)
focal_class.full_signature: public void onSaveInstanceState(Bundle outState)
focal_class.identifier: onSaveInstanceState
focal_class.modifiers: public
focal_class.parameters: (Bundle outState)
focal_class.return: void
focal_class.signature: void onSaveInstanceState(Bundle outState)
focal_class.class_method_signature: PaginatedListPresenter.fetchFirstPage()
focal_class.full_signature: private void fetchFirstPage()
focal_class.identifier: fetchFirstPage
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void fetchFirstPage()
focal_class.class_method_signature: PaginatedListPresenter.fetchNextPage()
focal_class.full_signature: private void fetchNextPage()
focal_class.identifier: fetchNextPage
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void fetchNextPage()
focal_class.class_method_signature: PaginatedListPresenter.restoreInstanceState(Bundle savedInstanceState)
focal_class.full_signature: private void restoreInstanceState(Bundle savedInstanceState)
focal_class.identifier: restoreInstanceState
focal_class.modifiers: private
focal_class.parameters: (Bundle savedInstanceState)
focal_class.return: void
focal_class.signature: void restoreInstanceState(Bundle savedInstanceState)
focal_class.class_method_signature: PaginatedListPresenter.initializeListAdapter(List<TItem> initialItems)
focal_class.full_signature: private void initializeListAdapter(List<TItem> initialItems)
focal_class.identifier: initializeListAdapter
focal_class.modifiers: private
focal_class.parameters: (List<TItem> initialItems)
focal_class.return: void
focal_class.signature: void initializeListAdapter(List<TItem> initialItems)
focal_class.class_method_signature: PaginatedListPresenter.onEndlessScrollBottomReached()
focal_class.full_signature: protected void onEndlessScrollBottomReached()
focal_class.identifier: onEndlessScrollBottomReached
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onEndlessScrollBottomReached()
focal_class.class_method_signature: PaginatedListPresenter.initializeRefreshLayout()
focal_class.full_signature: private void initializeRefreshLayout()
focal_class.identifier: initializeRefreshLayout
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initializeRefreshLayout()
focal_class.class_method_signature: PaginatedListPresenter.displayItemsFromProvider(List<TItem> images)
focal_class.full_signature: private void displayItemsFromProvider(List<TItem> images)
focal_class.identifier: displayItemsFromProvider
focal_class.modifiers: private
focal_class.parameters: (List<TItem> images)
focal_class.return: void
focal_class.signature: void displayItemsFromProvider(List<TItem> images)
focal_method.body: public PaginatedListProvider<TItem> getListProvider() {
          return mProvider;
      }
focal_method.class_method_signature: PaginatedListPresenter.getListProvider()
focal_method.full_signature: public PaginatedListProvider<TItem> getListProvider()
focal_method.identifier: getListProvider
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: PaginatedListProvider<TItem>
focal_method.signature: PaginatedListProvider<TItem> getListProvider()